Skip to content

How to get Sensor value using script INA219 #19289

Answered by sfromis
fhorinek asked this question in Q&A
Discussion options

You must be logged in to vote

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 enable SetOption64 to have the sensor name become INA219_1 instead of INA219-1 which is not supported in scripting.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@fhorinek
Comment options

@sfromis
Comment options

@fhorinek
Comment options

Answer selected by fhorinek
Comment options

You must be logged in to vote
1 reply
@sfromis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants