I have home assistant up and running and controlling my garden lights using a nodemcu. I am turning these on/ off via rest_command and have them coming on and off at sunset and late evening using automations.
Now I would like to create a simple toggle so I can have a button on my dashboard.
I have created a helper input Boolean, to control this.
I found this link that appears to be perfect, I am trying to follow 123 Taras suggestion.
I have used the frontend to create the automation and this looks like
Hi thanks for the feedback, this wont work for me. The nodemcu code is written by myself and only supports http Get. It basically strips out the object I want to turn on/off from the passed in URL.
Yeah was pretty certain it didn’t meet standard, it does what I need for now.
The full error description, I can’t embed the image since a newbie.
Logger: homeassistant.automation.hanging_lights_toggle
Source: components/automation/_init.py:408
Error while executing automation automation.hanging_lights_toggle: Error rendering service name template: UndefinedError: ‘trigger’ is undefined
Indeed. It might seems obvious, but if an automation is not triggered, but only its actions ran manually through the GUI, there is no trigger object created.