Replies: 3 comments 1 reply
-
DP 17 rarely contains usable data in Tuya smartplugs. They seem to reset the counter as soon as the data is reported to the cloud. You should just use the power sensor with an integration helper to track energy usage. |
Beta Was this translation helpful? Give feedback.
-
😢 which is kind of what I figured but it is really annoying. Because the power jumps between extremes the integral sensor isn't that accurate. Is this data polled or event based? I am guessing that DP17 is sending an amount to add to the total each time as an event so will generally be zero and will then fire off an event once some threshold is met. Just wondering whether whatever is sent on DP17 would show up or not (mainly out of interest to try and see if there is anything I could salvage from it) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have what is marketed in the UK as a Knightsbridge Dual outdoor socket.
When I add this I get several different devices to choose from but none seem to exactly match the dps listed against the device.
I am using dual_power_monitor_smartplugv2.yaml which is one of the options and seems to map most things OK.
The one thing I really want is the power consumption from the device (not current power). DP 17 is
add_ele
which I guess is the kWh data I want *and shows up in the Tuya app? This isn't showing up anywhere but I couldn't quite work out he yaml definitions.The definition I am using https://github.com/make-all/tuya-local/blob/main/custom_components/tuya_local/devices/dual_power_monitor_smartplugv2.yaml has dp 17 listed under the primary entity but marked as optional where as one of the other definitions I was looking at had it under secondary entities (as the current / voltage / power sensors are) but not sure what the difference is.
So the main question is whether the existing definition is fine for this device or whether I need to adjust or create a new one?
Is the
add_ele
value mapped properly and the fact it is not showing up because although the device says it is one of the DPs it is not actually being sent? Is there something else I need to do to get the power consumption figures that show up in the app (I would prefer to use that rather than the Riemann Sum Integral I am using now based on the powerFor reference the list of options for the device is
Although several of these appear to be single sockets but the tip two both work (albeit with a few different DPs)
Device details are
and query things data model gives
Beta Was this translation helpful? Give feedback.
All reactions