Hi every,
I have a strange behaviour using the automation to light up a shelly 1 switch with automation:
I do have a sensor, and if the sensor is on, I want a shelly to change it’s state to on:
this is the automation I defined:
#automations.yaml
- id: '1575358248051'
alias: Turn on OnAir when Pixel Maniacs is Live
description: ''
trigger:
- entity_id: binary_sensor.twitch_pixel_maniacs
from: 'off'
platform: state
to: 'on'
condition: []
action:
- service: light.turn_on
My global config looks like this:
...
shelly:
discovery: true #add all devices (default)
sensors:
- all #show all sensors
devices: #configure devices
- id: "767730"
light_switch: true #add this switch as a light
...
The entity_id of the Shelly switch I want to controll is light.shelly_shsw_1_767730
When I add this to the last line of my automation like this:
#automations.yaml
- id: '1575358248051'
alias: Turn on OnAir when Pixel Maniacs is Live
description: ''
trigger:
- entity_id: binary_sensor.twitch_pixel_maniacs
from: 'off'
platform: state
to: 'on'
condition: []
action:
- service: light.turn_on
entity_id: light.shelly_shsw_1_767730
hass.io tells me on the main window where all sensors and actors are displayed that the shelly switch is not available?
Any idea what is going wrong at that place?
Thank you so far!
Greets Andi