Hello,
I am trying to migrate all of my devices from Homebridge to Homeassistant. Everything is seemless but I struggle with one set of devices.
I have a few switches which are controlled using esp8266 and triggered by url.
These switches are stateless however I do not know their current state and I do not need to know it. The same url turns the device on and then off.
Here is the configuration I had in homebridge:
“accessory”: “HTTP-SWITCH”,
“name”: “Lights”,
“switchType”: “stateless”,
“onUrl”: “http://x.x.x.x/setButton?button=13”
I tried using REST Switch with the following configuration:
switch:
- platform: rest
resource: http://x.x.x.x/setButton?button=13
name: Lights
I was able to control the lights but they were being turned on and off periodically. (I am guessing when it was trying to get the state?)
How would I go around making stateless switch using rest?