Ok I found some sort of workaround, but it’s not working as expected.
I’ve setted pin d4 as output and connected vcc from soil sensors to this pin.
- platform: gpio
Then I’ve set up an action, triggered by an Mqtt topic; to turn on d4 and then turn it off again after a delay of 10 seconds.
- delay: 10s
and this is working fine: sensors turn on and in HomeAssistant I can see the right state (wet or dry).
The problem is that when the pin d4 is turned off in HomeAssistant all the sensors show always wet state.
I would expect to see the last state or an
unavailable state that I could control with retain or payload messages or whatsoever.
Do you guys think there’s something I can try?
An alternative solution would be to use deep sleep but in that case I’ll loose even the state of the other sensors connected to the board.
Any hint is really appreciated. thanks