HTTP GET and HEAD requests are not enabled by default but can be enabled by adding them to the allowed_methods option. Scanned using the Home Assistant Companion mobile application.Ĭurl -X POST -d 'key=value&key2=value2' Webhooks support HTTP POST, PUT, HEAD, and GET requests PUT requests are recommended. Nautical twilight: -6° > Solar angle > -12°Īstronomical twilight: -12° > Solar angle > -18°Ī very thorough explanation of this is available in the Wikipedia article about the Twilight. Enough illumination renders artificial sources unnecessary for most outdoor activities. This is what is meant by twilight for the average person: Under clear weather conditions, civil twilight approximates the limit at which solar illumination suffices for the human eye to clearly distinguish terrestrial objects. Then from this, you can select from the defined twilight numbers.Īlthough the actual amount of light depends on weather, topography and land cover, they are defined as: If you want to get more precise, you can use this solar calculator, which will help you estimate what the solar elevation will be at any specific time. Trigger variables are a feature meant to support using blueprint inputs in triggers.Īutomation : - alias : " Exterior Lighting on when dark outside" trigger : - platform : numeric_state entity_id : sun.sun attribute : elevation # Can be a positive or negative number below : -4.0 action : - service : switch.turn_on target : entity_id : switch.exterior_lighting The triggers will not re-apply if the value of the template changes. These variables can only contain limited templates. These are defined using the trigger_variables key at an automation level. The second variant is setting variables that are available when attaching a trigger when the trigger can contain templated values. The variables will be able to use templates and have access to the trigger variable. The first variant allows you to define variables that will be set when the trigger fires. There are two different types of variables available for triggers. This video tutorial explains how trigger IDs work.Īutomation : trigger : - platform : event event_type : " MY_CUSTOM_EVENT" id : " custom_event" - platform : mqtt topic : " living_room/switch/ac" id : " ac_on" - platform : state # This trigger will be assigned id="2" entity_id : - device_tracker.paulus - device_tracker.anne_therese to : " home" Trigger variables The id does not have to be unique for each trigger, and it can be used to group similar triggers for use later in the automation (i.e., several triggers of different types that should all turn some entity on). The id can be referenced from trigger conditions and actions. If the ID is omitted, it will instead be set to the index of the trigger. Multiple Entity IDs for the same TriggerĪll triggers can be assigned an optional id.It is also possible to specify multiple triggers for one automation. These can be specified directly or more flexible via templates. When any of the automation’s triggers becomes true (trigger fires), Home Assistant will validate the conditions, if any, and call the action.Īn automation can be triggered by an event, a certain entity state, at a given time, and more. Triggers are what starts the processing of an automation rule.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |