Open renedis opened 1 year ago
Your config contains an extra key i2c_bus_num
. You have probably copied it from LM75 config, but it is invalid for ina219
.
Valid configuration for ina219
must match this schema:
https://github.com/flyte/mqtt-io/blob/7367dd1fb34903564f27044f3f02fd8df452c04a/mqtt_io/modules/sensor/ina219.py#L31-L47
Makes sense.. But this way it doesn't allow you to set the i2c bus number.
the Python3 script works now.. but sadly, it still does not read any values. But that's an other issue I guess. I've already changed the script to add "i2c_bus_num" and will make a pull-request.
I added a pull request to include i2c_bus_num. It's in the develop repo now: 2bb2f945ea47ed87f99ab4fc966d2dbbd47fc7c7
I have a ina219 sensor on i2c available on bus 10 with address 0x43. I can confirm it works with a default python script.
But with mqtt-io it doesnt.
Code:
yaml:
What did I do wrong?