I discovered Homeassistant and Sonoff about 2 months ago. You learn slowly with the language barrier. Well, maybe by winter I will be able to learn everything so that I can control the heating.
I apologize once again and promise not to waste the forrum again.
I believe what he wants is a boolean return when the device connected is running or not.
That is also why I believe the Sonoff basic is not the correct tool.
Oh, I have a bunch of sonoff basics for that purpose. Sonoff 4 CH Pro that switch on a contacter / teleruptor in the distribution box, sonoff basic to know if the light is on or off.
I am preparing 4x TH-10 for measuring temperature and humidity in 4 rooms and 5x POW for switching and measuring heating and water heating. The electricity distribution company provides me with a lower price of electricity for some time a day and controls it with an electrical impulse that I just need to monitor.
I have Sonoff basic in ESP and I know for sure that sonoff basic with originall firmware can do what I need - after the voltage returns it turns on to the desired state and that’s enough for me. I just don’t know how to set it up in ESP firmware
You could then have an automation that tells you when the device is connected / has power.
automation:
trigger:
- platform: state
entity_id: binary_sensor.hdo_server_status
to: "on"
action:
- service: notify.notify
data:
message: Your device has power
I see…
so here I end …
I’m going back to the forest …
Thank you for your precious time …
I will try to get back the original firmware for the basic R3 or buy a new one