hello, im very new to Home Assistant but i really to to learn as much as possible.
i want to wake up my NAS, it already works if i do this via shell script or shell command.
my problem is thad my config dont create any switch!
it doesnt matter if i write my code in an new .yaml file and include this or directly in configuration.yaml.
i checked the spaces (2 in front of -platform, 4 in front of name,mac,host) checked the config, rebootet hassio etc. etc. i really dont know my problem.
i tried with ---- instead of ::::. nothing changed
probable I have expressed myself incorrectly.
My problem is not the wake_on_lan function!
My problem is that the switch is not created. Doesnt matter if i write the mac with : or with -. the switch does not apear…
i copied my config 1 : 1 to another instance of Homeassistant, and hey… the switch apears there!
Also the standard switch from the switch documentation works for me. only the WOL switch doesnt apear.
Can you try and just put the switch in your config file, rather than calling back to the switch.yaml? I know it should work the way you have it, but maybe a different method will knock something loose. For example, in my configuration.yaml, I have:
Ok, this is probably not going to help, but try refreshing the frontend with ctrl+F5. That should ignore your browser’s cache and reload everything. It sometimes happens to me that when I add a new entity, I cannot access it from the entity filter quick bar. Maybe this is something similar.
I have automatic login into the synology server based on key pairs and “sudo shutdown now” can be used by the user on the server without password. known_hosts and id_rsa has been copied to the /config/scripts directory.
When I turn the switch off I get an error 255 so it seems the login into the server seems not to work. Anyone understands what goes wrong?