@mboarman wrote:
Coming over from Hubitat and trying to wrap my head around this universe. I’m running Hass.io and trying to transfer over some of my Hubitat automations one at a time…For the most part I’m using a combination of google searches and the Automation GUI to port these over. I have a question that I bet is pretty simple for 90% of the users here. I currently have two automations built: One to turn on a switched light when a door is open and another to turn off the same switched light when the door closes. I’ve got to imagine these can be combined but I can’t figure out how to do it in the GUI and when I start to mess with a text editor I get syntax errors…I’m curious to know how the ‘experts’ here would combine these two automations?
- id: '1579741181375' alias: Laundry Room Light - turn on description: '' trigger: - entity_id: binary_sensor.visonic_mct_340_e_3440120b_ias_zone from: 'off' platform: state to: 'on' condition: [] action: - device_id: af884a417a494ea0820f6fd43594c5dc domain: switch entity_id: switch.honeywell_unknown_type_4952_id_3036_switch type: turn_on - id: '1579741745648' alias: Laundry Room Light - turn off description: '' trigger: - entity_id: binary_sensor.visonic_mct_340_e_3440120b_ias_zone from: 'on' platform: state to: 'off' condition: [] action: - device_id: af884a417a494ea0820f6fd43594c5dc domain: switch entity_id: switch.honeywell_unknown_type_4952_id_3036_switch type: turn_off
Posts: 3
Participants: 3