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
how to read INA219 in domoticz
Moderators: leecollings, remb0
-
- Posts: 4
- Joined: Sunday 11 August 2019 19:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
how to read INA219 in domoticz
- Attachments
-
- 3.png (23.5 KiB) Viewed 1624 times
-
- 1.png (19.47 KiB) Viewed 1624 times
-
- 2.png (29.82 KiB) Viewed 1624 times
-
- Posts: 8
- Joined: Thursday 22 November 2018 12:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: how to read INA219 in domoticz
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!
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
] 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]
For Voltage, is just to choose Volt sensor in Domoticz Hardware tab for Virtual sensors. Be aware to chose the correct IDx, as always!

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

................................................................................................................
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]
Who is online
Users browsing this forum: No registered users and 1 guest