OK, I need some help and advice from the community please?
I am trying to run a curtain/blind motor for 6 seconds and show the status (open/closed) in HA
This is what I have:
Main HA instance running HASSIO 80.3 on RPi3
Second RPi with a relay attached to the GPIO pins to drive the motor
I have a scenario where I need to achieve the following:
A) On the Main HA, a switch/item to show the status (open/closed)
B) Main HA need to trigger the GPIO on the second RPi for 6 seconds
C) [Optional] Persistent state of open/closed to ‘remember’ state even after a reboot of HA
Does anyone have any suggestions on how to do this?
Not concerned what OS is running on the second RPi, but HASSIO would be preferred.
You could run this project, and send it MQTT messages. The /set_on_ms topic seems to do what you need for turning the gpio on for a certain length of time.
Edit: On second thoughts, it doesn’t seem to send a status message back, so maybe not such a good idea.
Ah, I did not realise that you can actually SET something using MQTT - I thought it was just a way to GET information. I will have a look into this, maybe just ahve another HASSIO instance as the second RPi and control it that way?