either you copied wrong name or you didn’t setup correctly this integration.
I don’t have a clue what I’m doing wrong
Go to settings - > system - > logs and check for errors especially from your integration. You can also load full logs.
Post it here just a relevant part because it will be huge.
I’m running the latest HA and almost all instructions and guidelines on internet and on forums seems to be based on older versions of HA. Maybe that’s because I don’t understand anything right now.
This is my absolute first try to make a simple schedule for one of my configured Nexa wall-switch (that I can manual turn on and off)
I should really appreciate an explanation, how to do this, from the very beginning.
It’s maybe some basic stuff that’s missing, but I don’t know
Go to Developer Tools > States and confirm switch.oo_5
is in the list (look in the Entity column). Confirm its current state value is either off
or on
(and not unavailable
or unknown
).
Or go to Settings > Devices & Services > Entities and confirm switch.oo_5 is in the list (look in the Entity ID column).
Yes, there it is and the state is Off
- Using the Automation Editor, create a new, empty automation.
- In the upper right hand corner of the Automation Editor, click the “kebab icon” (three vertical dots) and select Edit in YAML.
- Delete whatever appears in the editing window.
- Copy the following automation and paste it into the editing window.
alias: Nexa lamp controller
trigger:
- id: 'on'
platform: time
at: 19:00:00
- id: 'off'
platform: time
at: 23:00:00
condition:
- condition: time
before: "00:00:00"
after: "19:00:00"
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: 'switch.turn_{{ trigger.id }}'
target:
entity_id: switch.oo_5
- Click the Save button and then click the Rename button.
- Click the “kebab icon” again and select Edit in Visual Editor.
- Your automation is now displayed in visual mode and has been saved and is functional.
Yes ! It’s working.
But, what do you mean by “Your automation is now displayed in visual mode” ?
Sorry, now I understand
The Automation Editor has two display modes:
- Visual
- YAML
You can toggle between the two modes via ‘Edit YAML’/‘Edit in visual editor’.
You initially switched the Automation Editor into YAML mode, copy-pasted the example I posted, saved it, then switched back to visual mode.
You can, of course, create/modify an automation entirely in visual mode. However, for sharing automation examples, it’s much easier to just copy-paste YAML than to post screenshots.
Thanks a lot !
Now it’s working and I’m happy.
It’s hard to explain problem, when you know nothing about this.
I’m in a learning phase.
You’re welcome!
Please consider marking my post above with the Solution tag. Only you, the author of this topic, can choose one post that answered your original question. After you mark my post with the Solution tag, it will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.
For more information about the Solution tag, refer to guideline 21 in the FAQ.