Hello,
This might be the -ish question about that but I have issues to complete the task.
I have four light sensors, that are located on my panel array. Top Left, Top Right, Bottom Left, Bottom Right.
I created template sensors: bottom_panel, top_panel, left_side, right_side.
If top and bottom differ by 10 percent for 2seconds (g. e. top is ten percent under bottom, then sonoff switch shall get switched. )
What’s wrong on my code?
alias: Top < Bottom
description: ""
trigger:
- platform: numeric_state
entity_id:
- sensor.top_panel_side
below: sensor.bottom_panel_side
id: sensor.bottom_side
for:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
condition: []
action:
- if:
- condition: trigger
id:
- sensor.bottom_side
then:
- type: turn_on
device_id: 6ba84fa1c34d701d6b93e3a6d10fc062
entity_id: 8735b3ac249da3933bd02b6d69543d34
domain: switch
mode: restart
1 post - 1 participant