@gr2659 wrote:
Hello - long time HA user, first time poster - hoping you all can help me with a new project…
I run HA via docker (the official image). I have a raspberry pi 3B with a few DHT22 Temperature/Humidity sensors elsewhere on my network. I want to add those DHT22 sensors, connected to my pi to HA via remote_rpi_gpio - is that something I should be able to do?
It looks like most people use this integration with the GPIOs as switches/relays. Is there anything special in my config (my HA configuration.yaml OR on my pi) that I would need to do so that HA can see those as (dual, i.e. temperature + humidity) sensors?
my setup to test this is pretty straight forward:
binary_sensor: - platform: remote_rpi_gpio host: 172.17.0.210 ports: 22: Environment1 23: Environment2
From the logs, I would say it looks like it is expecting a switch…
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 292, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 461, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/remote_rpi_gpio/binary_sensor.py", line 104, in update self._state = remote_rpi_gpio.read_input(self._button) File "/usr/src/homeassistant/homeassistant/components/remote_rpi_gpio/__init__.py", line 63, in read_input return button.is_pressed AttributeError: 'NoneType' object has no attribute 'is_pressed'
Any thoughts would be appreciated!
Posts: 2
Participants: 2