Hi, I have an aREST endpoint running on a Node JS Server. I wrote a simple test html which calls my aREST function to make sure it works, and it does.
But when I include the aREST component in Home Assistant and declare a switch with my function, this functions gets called every 30 seconds automatically after restarting HA, which is super annoying since it toggles a light switch.
switch:
- platform: arest
name: Controllinator 3000
resource: http://my_server_ip:3000
functions:
lightSwitch:
name: Light Switch
After every automatic call, I get an error in the log:
[homeassistant.helpers.entity] Update for switch.controllinator_3000_light fails
There is also a stracktrace which I cannot post at the moment, since I currently have no access to my HA instance. If you need it, please let me know.
If I add pins instead of functions, it seems to work.
Do you have any ideas to make the functions work correctly?