how to read INA219 in domoticz

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
dany1794
Posts: 4
Joined: Sunday 11 August 2019 19:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

how to read INA219 in domoticz

Post by dany1794 »

hey, does anyone know how to pass data from espeasy to domoticz for INA219.
Readings in espeasy are ok I have tried in various ways to add them in domoticz but nothing shows
Attachments
3.png
3.png (23.5 KiB) Viewed 1624 times
1.png
1.png (19.47 KiB) Viewed 1624 times
2.png
2.png (29.82 KiB) Viewed 1624 times
misterleffe
Posts: 8
Joined: Thursday 22 November 2018 12:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: how to read INA219 in domoticz

Post by misterleffe »

Made it this way.

For Voltage, is just to choose Volt sensor in Domoticz Hardware tab for Virtual sensors. Be aware to chose the correct IDx, as always! :D
In the same way I made 2 Custom sensors, to be used for Amperé & Power.
When Voltmeter is done and working, you can see the values in Domoticz Log

Read Ampere and Power, I used a dZvent script as follows. I made the script [with some help :lol:] in Domoticz Setup tab. Save and activate, when ready!
................................................................................................................
return {
on = {
timer = {
'every 2 minutes'
}
},
execute = function(dz, dev)
dev = dz.devices("Spänning drift")
temp = dz.utils.stringSplit(dev.sValue,";")
dz.devices('Strömförbrukning drift').updateCustomSensor(temp[2])
dz.devices('Effektförbrukning drift').updateCustomSensor(temp[3])
end
}

..............................................................................................................

"Spänning drift" = Name of the virtual Volt sensor. You choose the name, but it MUST be the same as in Domoticz!
"Strömförbrukning drift" = Name of the custom sensor for Amperé [can be any name, but it MUST be the same as in Domoticz]
"Effektförbrukning drift" = Name of the custom sensor for Power [can be any name, but it MUST be the same as in Domoticz]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest