@CaptTom wrote:
Raspberry Pi 3 B+ running HASS.IO. I’m thinking of connecting some relays to the GPIO pins. The relays would be powered by components in my HVAC system, so would appear to the GPIO just like switches (two states; opened or closed.) I’m not looking to control anything, just read the status of these components.
I’ve never done this before, never used Python before, only just coming up to speed with HA in general. I’ve searched, and found some pointers, but most documents I’ve found so far assume a lot more experience.
For example, is there a way to display the status of the GPIO pins while testing? I found the command “sudo gpio readall” but all it returns is an error saying the gpio command doesn’t exist.
I added a small “switch” sample I found to configuration.yaml, and the couple of switches in the example are available to add to Lovelace, so I’ve got that far, even with no pins connected. I’ve read up on the issues with pin numbering and naming.
Next step would be to physically wire some switches to the pins, open and close them, and see what displays. Am I on the right track?
Thank you!!
Posts: 3
Participants: 2