Skip to content

issue with climate.set_temperature #523

Closed Answered by phsdv
phsdv asked this question in Q&A
Discussion options

You must be logged in to vote

Found it my self. I used a boolean called climate that signals if it should switch on or off the heater.

    if hour >= 8 and hour <= 16:       # working hours
        climate = True
    if climate:
        log.warning(f"Thermostat set to SetHigh at {trigtime}, temp_inside={temperatureInside}, temp_outside={temperatureOutside}")
        #climate.set_temperature(entity_id="climate.smart_kantoor_vloerverwarming", temperature=SetHigh)
        climate.set_temperature(entity_id="climate.smart_kantoor_vloerverwarming", temperature=SetHigh)

stupid mistake
[edited block for better visibility]

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by phsdv
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants