-
Hi I have connected INA219 via I2C to esp8266. However don't know access the sensor value in script.
print output is My configuration is
I have latest development branch and master from github |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Did you make sure to have your variable created in the I'm not using scripting, but the correct format for the name would be |
Beta Was this translation helpful? Give feedback.
-
How is ina published when teleperiod publishes? For a INA226, it looks like INA226-1. Thus I have to implement setoption64 1 to switch to underscore for the default dash, since that interferes with math in scripting. So in the >T section, I use value=INA226_1#Current Ina219 may be similar. Be sure only assign variables values in >T section, no other logic. |
Beta Was this translation helpful? Give feedback.
Did you make sure to have your variable created in the
>D
section?I'm not using scripting, but the correct format for the name would be
INA219#Voltage
(to match what you see in MQTT payloads). Note that if you have more than one INA219 sensor, you should enableSetOption64
to have the sensor name becomeINA219_1
instead ofINA219-1
which is not supported in scripting.