Hi all,
this is now my first thread here and I am not 100% being in the right place to ask. If not, do not hesitate to push the thread somewhere or give me feedback.
I try to setup a temperature triggered shadowing of the windows facing south. So far it works, I created a scene to be triggered if the temperature from a Zigbee thermometer is above 25 °C for 15 min. All shadows facing south are closing to 70%. For info: I am still working on the frontend assisted programming, not scripts.
However I am interested to put some more conditions here but I would like to have these conditions in “modular” way, i.e. variables. Example: If sleeping time of the house (i.e. 7pm-9am), don’t activate automation (f.e. in summer, if temperature may be over 25 also in the night the automation should not open the shield). Or: if fire alarm turns on, deactivate automation (it should not close shields). These variables should be used in multiple automations later and if want to change one of the conditions I just have to change the variable. How can I do this?
Another question: How can I avoid to start the automation again and again? F.e. at 10.a.m the shields close to to temperature. However, the temperature keeps stable from this time on and at 12 a.m. our child should take a nap and I close the corresponding shield completely. How can I avoid that the script will open up the shield again (set it to 70% when the tenperature is updated and > 24.5 °C)?
I guess I found something which is most propably helpful to me - however I do not know how to implement the solution currently to my automation.
https://community.home-assistant.io/t/temperature-trigger-multiple-values/55832
Here just adding the current automation script
alias: Beschattung Süd
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.lumi_lumi_weather_1a3fe207_temperature
above: '25'
for:
hours: 0
minutes: 15
seconds: 0
condition: []
action:
- scene: scene.rolladen_beschattung_sud
mode: single
A lot of - I think small questions but maybe someone can help out
Thanks in advance,
Simon