benleb / ad-automoli

💡 Fully automatic light management based on conditions like motion, illuminance, humidity, and other clever features
https://github.com/benleb/ad-automoli
MIT License
110 stars 29 forks source link

how is scene suppoesd to work #35

Closed thundergreen closed 4 years ago

thundergreen commented 4 years ago

could you please add an ex ample and explain how scenes are supposed to work. I don't nderstand. I thought i can create scenes in hoeassistant and it will fire this scenes? can't find an example.

Thanks in advance :) I am porting all my automations to automili :)

For me scenes are to set brightness color etc but i don't get this ruunning somehow :/

efurban commented 4 years ago
  1. you can create your scene however you'd like to (e.g in HA)
  2. use it like this: (the documentation has the scene name but missed "scene.". I found it out by try & error)
    
    motion_state_on: "on"
    motion_state_off: "off"
    daytimes:
    - { starttime: "02:00", name: late_night, light: "scene.bathroom_lights_on_night" }
    - { starttime: "08:30", name: day, light: "scene.bathroom_lights_on_day" }
thundergreen commented 4 years ago

Thanks a lot! I found it out also by myself and thanks to the pull request which unfortunately has still not been merged 😝

https://github.com/benleb/ad-automoli/pull/31