Hello, I have a beginner question.
How can I run an “entity” as an action in an automation.
Because I have Homematic switches (on/off) that show up under entity.
As an example, this switch should be set to on at 16:30.
Hello, I have a beginner question.
How can I run an “entity” as an action in an automation.
Because I have Homematic switches (on/off) that show up under entity.
As an example, this switch should be set to on at 16:30.
You want to use a service as an action. The service to turn on a switch is switch.turn_on.
Whether this is correct, I don’t know… sorry beginner question … come from ioBroker, Homematic …
My intention, at a certain time to turn on the Christmas lights, which consists of various devices and at a certain time to turn them off again.
The lighting consists partly of Devices and some Homematic switches are shown as an entity.
You can
alias: example 1
trigger:
- platform: time
at:
- '16:30:00'
- '22:50:00'
action:
- service: "switch.turn_{{ 'on' if now().hour == 16 else 'off' }}"
target:
entity_id: switch.terrasse_steckdose
wow great … thanks thanks thanks