- id: '1531026674422' alias: Leaving Home trigger: - entity_id: group.all_devices from: home platform: state condition: [] action: - data: {} service: script.sisyphus_sleep - id: '1531044638986' alias: Arriving Home trigger: - entity_id: group.all_devices platform: state to: home condition: [] action: - data: {} service: script.sisyphus_wake - id: '1531656474350' alias: sisyphus_erase_start trigger: - entity_id: sensor.track platform: state to: Erase condition: [] action: - alias: '' data_template: command: set_speed value: '{{states.input_number.sismax.state | float / 100}}' service: rest_command.sisyphus - id: '1531656525093' alias: sisyphus_erase_finish trigger: - entity_id: sensor.track from: Erase platform: state condition: [] action: - data_template: command: set_speed value: '{{states.input_number.sismin.state | float /100}}' service: rest_command.sisyphus - id: '1533028258590' alias: Change Sisyphus Speed trigger: - entity_id: input_number.sisspeed platform: state condition: [] action: - data_template: command: set_speed value: '{{trigger.to_state.state | int / 100}}' service: rest_command.sisyphus - id: '1533028258591' alias: Change Sisyphus Brightness trigger: - entity_id: input_number.sisbright platform: state condition: [] action: - data_template: command: set_brightness value: '{{trigger.to_state.state | int / 100}}' service: rest_command.sisyphus - id: '1533034155234' alias: Sisyphus changes speed trigger: - entity_id: sensor.speed platform: state condition: [] action: - data_template: entity_id: input_number.sisspeed value: '{{trigger.to_state.state | int}}' service: input_number.set_value - id: '1533034155235' alias: Sisyphus changes brightness trigger: - entity_id: sensor.brightness platform: state condition: [] action: - data_template: entity_id: input_number.sisbright value: '{{trigger.to_state.state | int}}' service: input_number.set_value