@Byrkjis wrote:
Hello everyone,
Im trying to figure out how to solve a automation with attention to control lights at daytime due to weather conditions.
my criteria is:
- tracking device must be “home”
- use sunrise as i only need this automation on daytime. (another automation trigger when sunset).
- and, of course, use weather condition as a trigger/condition.
i have tried a mixes with a test automation-setup with out any luck so far. it seems that it goes on even when im “not_home” and after daytime…
Do I need to implement “tracking device” since I have a another automation for turn off all lights when leaving home and on when i get home?
Also, i want to have more than “cloudy” in weather trigger. how do solve that ?
take a look at config for this automation:
alias: test description: '' trigger: - entity_id: weather.hjemme platform: state to: cloudy condition: - condition: and conditions: - after: sunrise before: sunset condition: sun - condition: state entity_id: device_tracker.mm state: home action: - entity_id: light.dimmable_light_1 service: light.turn_on
Posts: 2
Participants: 2