Hey, I want to change the state of a wall light switch (controlled by switchbot, a robotic button) based on how many lux a light sensor detects (Hue motion sensor)
Ej. less tha 10 lux --> light switch is off. More than 50lux–> Light switch is on
The switch entity is switch.switchbot
Lux sensor sensor.hue_motion_sensor_1_light_level
The switchbot presses a light button but does not know what the real state of the light is.
In this way that you advised me, I think the switch is turned on and then switchbot goes to physically press the key. I just want homeassistant to consider it turned on, but not to trigger the switch.turn_on service. I hope I explained myself
You can use this light instead of your switchbot switch and it will show the state. It may take some time to display the state correctly - depending on how quickly your lux sensor reports a change.
If you really don’t want to use a light as the entity (I meant that’s what it is, so you should) you can construct a template switch almost identically.