I created my first automation using Home Assistant, and I would just like some feed back on weather I did it correctly or not.
This is 3 separate automatons, I am using the Motion and Temp sensors from my Ecobee, and a Belkin WeMo switch to control a window AC in my converted garage where all my servers and gaming systems are.
The first Rule is supposed to Turn on the AC if the Temp is above 74 and the room is occupied. The second rule is to turn off the AC if its below 76 and the room is empty. The third rule is to turn on the AC if the temp is above 80 regardless if anyone is in the room or not.
- id: '1527634810468'
alias: Game Room AC ON
trigger:
- above: '74'
entity_id: sensor.game_room_temperature
platform: numeric_state
condition:
- condition: state
entity_id: binary_sensor.game_room_occupancy
state: 'on'
action:
- data:
entity_id: switch.gameroom_ac
service: switch.turn_on
- id: '1527637106586'
alias: Gameroom AC OFF
trigger:
- below: '76'
entity_id: sensor.game_room_temperature
platform: numeric_state
condition:
- condition: state
entity_id: binary_sensor.game_room_occupancy
state: 'off'
action:
- alias: ''
data:
entity_id: switch.gameroom_ac
service: switch.turn_off
- id: '1527639192572'
alias: Gameroom AC Server Protect ON
trigger:
- above: '80'
entity_id: sensor.game_room_temperature
platform: numeric_state
condition: []
action:
- data:
entity_id: switch.gameroom_ac
service: switch.turn_on
I think I did everything correct, but it hasn’t been running long enough to really tell.