Just be aware that the GUI automation editor will throw an error if you use OR saying OR is not supported condition⌠but the automation works perfectly.
@xbmcnut- Please let me know if you get it working with turning the Light on with Sensor value. Please give the details âŚso I can verify what I am missing here.
That will trigger when either thereâs motion, or the light level falls below 330. Then it will check that the light level is below 450 (which it will be if the light is below 330), and if so, turn on the light.
Your last automation triggers on the state Change on/off (not numeric_state but state )so you can only test it when that actually happens, by triggering it in the dev tools. Have you done the latter?
You can also create the input_number from my package and use that. With that you can easily keep triggering the automation by sliding the slider.
We donât know what entities youâve got, or what their state and attributes are. Iâm guessing that sensor.sn1_ldr is what youâre after, as I posted before, butâŚ
- id: Light Level is Low - Switch On
alias: Light Level is Low - Switch On
trigger:
platform: state
entity_id: binary_sensor.low_lux
to: 'on'
action:
service: homeassistant.turn_on
entity_id: light.sn1_led
- id: Light Level is High - Switch Off
alias: "Light Level is High - Switch Off"
trigger:
platform: state
entity_id: binary_sensor.high_lux
to: 'on'
action:
service: homeassistant.turn_off
entity_id: light.sn1_led
This is shown in Developer tool (States(<>)) in HA.
low_lux = on means less light than the threshold, so turn on lights. Seems to be desired behavior?
btw, your low_lux threshold is rather high⌠should be more useful at 50 or so. equally your high lux is a tiny bit high tp be discerningly useful. lower to 350 or 400 and have more use for it (of course depending on the position of the sensors, and the general value of that position for you complete setting)
because of the latter, I also use a mean sensor to generate the overall light threshold in the house and compare to that to be able to finetune
669/5000
Best. I am new here . and my English is bad
try with this code: from you
my automation lamps on when lower is then.
it does not work.
can you help me code automation lamps on
in me automation.yaml
Iâm only a beginner.
497/5000
hello I am new. and me English is bad.
try to make automation code for 14 days
am a beginner.
have this code primer sensor. used works perfectly
automation.yaml really does not want to succeed.
could anyone help me please I do not come out.
am also a beginner.
thank you in advance
i need a automation.yaml when sensor lux low then livingroom lights On.
tanks all
i have thiis code sensor and works perfectly:
only me automation.yaml please who can help me