I am trying to use a Digispark on my Pi usb port to feed in temperature data, I am running the latest Hassio version.
I used this guide:
[Simple analog sensor. It looked to easy and I had a couple of the boards sitting around.
Error"
ERROR (MainThread) [homeassistant.config] Invalid config for [sensor.serial]: required key not provided @ data[‘serial_port’]. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/sensor.serial/
and get the following error:
ERROR (MainThread) [homeassistant.config] Invalid config for [sensor.serial]: required key not provided @ data[‘serial_port’]. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/sensor.serial/
Looks like the documentation on this component is wrong.
The error is trying to tell you that the component is expecting a value called serial_port (not port)
So I changed your code to the following and it does pass the config check.
I can’t tell you if it works though.
Thanks! That did stop the error. But I am not getting any data inbound. I have tested the device on a PC and every few seconds it spits out the current temperature. The Pi is seeing the device as follows: