Hi friends!
I have a raspberry, dht22 sensor and relay with which since 3 years i manage the heating with a linux bash script and cron.
Now i discovered home assistant: it is very nice and i want to pass by raspbian to hassio.
I have only a few doubt about automation. I want that:
set at 6:30 am the target temperature to 20C
set at 09:00 away mode
set at 14:30 target temperature to 20C
set at 23:00 away mode (for the night)
i think to set away mode to 16C
I’m able to set climate generic, dht22 sensor and gpio switch,
the automation will be about (i write the logic, non the code):
first automation that active heating when target temperature>home temperature
trigger: state
condition state climate.state=on
action switch.on
it is correct?
the other automation that change the value in the climate at setting time for example:
trigger: time
condition time = 09:00
action climate.temperature = 20
etc etc (or i have to use condition time after 06:30 below 09:00)?
it is correct?
I must have the possibility to change manually the target temperature
another question, if i want the possibility to stop heating for 2 hours what can i do?
thanks!!! sorry for the first questions but before going to destroy my bash script i must be sure
Home Assistant can do all of this for you but you will need to read the docs carefully and get a grasp of how to code it. What you have above will take multiple automations but is certainly do-able.
in your case, it will be
trigger: state go from off to on
condition (no condition in this case)
action switch.turn_on
for stop heating for 2 hour, you can make a switch who make something like turn_off your climate, and the make a delay for 2 hour before turning_on
or make that more complex like a switch stop your automation (climate.temperature = 20), make a climate.turn_off, and turn on a script who make a 2 hour delay before reactivate your automation and you climate
you can create automation with the ui, then the code will be writed for you
some of it isn’t correctly formatted for the forum so I can’t tell if the indentation is correct or not. Can you please format it correctly? There are definitely some indentation issues in there though
SORRY FOR THIS STUPID QUESTION: i have to edit config.yaml with an editor text via SSH/SAMBA or i can do from UI web? after i have to reboot system to apply?
You could use the hassio plugin Configurator or IDE from the community addons. If you only changed the automations, you can just reload the automations, but most of the time a restart off home assistant is necessery (not a system reboot btw).
Yes. In the last 2 hours I have set up hassio and configurate it to do this. It’s OK. Tomorrow I will study how stop for xx hours. It’s very nice! Thanks.
P. S. A good android app to access to my dashboard?
I just use Google Chrome. Open HA in chrome and then in the menu select ‘add to home screen’. This will create an ‘app’ type icon on your home screen which will open HA in kiosk mode.
Sometimes there can be issues in getting it to work properly and the kiosk mode doesnt work. In this case: open HA in google chrome as above, then turn on ‘flight mode’ (ie: disable internet on your phone) then select ‘add to home screen’ from the menu. Once the icon is created on your home screen you can turn flight mode off. The ‘app’ (google chrome in kiosk mode) will then work as normal