Either way, you are better off going with a Model B for the onboard Ethernet and full-sized USB. The Raspberry Pi Zero 2 W could potentially be powerful enough, but it isn't supported. The same (= no pull up/down) configuration seems to be used also in the original Pimoroni’s code (see init.py#L181). While the Raspberry Pi Zero might be a popular platform for applications such as Pi-hole and room-assistant, it just isn’t powerful enough to handle Home Assistant. > returns correctly UP/DOWN as on input wire. tup(26, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) tup(26, GPIO.IN, pull_up_down=GPIO.PUD_UP) But what I am missing is - how to configure binary_sensor WITHOUT pull_mode? (as the default is “UP”). The same happens also with plain python code (see below) or configuration with raspi-gpio. When trying to find the difference, there looks that the original code uses no pull up/down configuration. This looks like the HA’s GPIO configuration still differs. pull_mode: “DOWN” works, but only after original Pimoroni’s demo script is started after HA. It is capable of tracking room occupancy and your location around the house with great accuracy, plus any other sensors you may want to attach. I did try just adding the three GPIOs as sensors, but Home Assistant always thinks they are on, no matter what I do to change the physical state of the inputs.Īctually I am trying to get Automation pHat running too, but without full success. Introduction room-assistant brings your home automation onto the next level: room automation. I’m wondering if I can use them as binary sensors using the instructions at. I’m hoping to get some help doing something similar using the three input channels on GPIO 26 (input 1), 20 (input 2), and 21 (input 3) on the pHAT. I can even add it to automations and easily control it from my phone. Doing so added a switch to the Home Assistant GUI, and clicking it toggles the relay. Essentially I just added a section to my configuration file that tells the software to use GPIO 16 as a switch. I was able to get the relay working natively within Home Assistant using the instructions at. Somewhere along the way I got the bright idea to combine the two projects. I recently discovered Home Assistant, and started setting that up on a rPi 2 b. It was pretty easy to set up a simple configuration with a reed switch to tell if the door was closed, use the relay to control the garage door opener, and set the camera up with motion-mmal for alerts. I was tinkering with it and a Pi Zero W with a PiNoir camera to make a garage door controller. I recently purchased my first (and likely not my last!) Pimoroni product: an Automation pHAT.
0 Comments
Leave a Reply. |