I setup my first haasio hub last night and got the bulb added to the dashboard around 2am but after some 4 hours of looking at this I still can’t figure out how to add a timer to the bulb. All the examples I find are way too complicated to unpick and get working.
I’ve tried adding this separately to both the configuration and automation files then rebooting the HAAS system but nothing happens apart from getting an error on the dash about the file.
What is the box that appears on your Dash ?
Can you post errors from your homeassistant.log that you think may be important to this issue.
And when you post code in the forum’s please highlight your code and press the ‘preformatted text’ </> button at the top of the text entry window to preserve formatting.
If you renamed it to level_3 why are you trying to turn it on and off with dining_room_light?
trigger:
platform: time
at: "00:43:00"
action:
service: light.turn_on
entity_id: light.level_3
Check the states table under developer tools - the <> icon for the proper entity_id
The entity_id zwave usually relates to the controller name for the command interface for the individual switches/lights/devices, so can’t be used to turn on/off a device
Thanks for the replies, now I understand a bit more. I’ll try and get everything in the correct format too, hopefully this is a bit more useful.
I have it working now with this code in automation.yaml
trigger:
platform: time
at: "08:18:00"
action:
service: light.turn_on
entity_id: light.level_3
After Keith’s comment I think either I still don’t understand the naming OR I’ve renamed the wrong part of the node if that’s possible as there’s no errors in the log now.
I’ve saved a few screenshots to help explain what I can see where here.
When I originally renamed it I went to the Node Management and changed it from some a long manufacturers name to “Dining Room Light” but I think this might have been the wrong place to do that because now although I see the new name I can’t actually use it when controlling the lights.
Below are the three entries under state relating to the light:
So my question after all of that is should I be able to reference the friendly name "Dining Room Light " in the code to change the light status or by using the entity name within “Services”?
You never ref the friendly name as that’s only there for the frontend display and is not used for anything else. This is what you ref new_entity_id: light.dining_room_light_level
The above statement is not strictly true as you can ref the friendly name but only to include in notify messages and the like. You can’t use it in any service calls.