-
Notifications
You must be signed in to change notification settings - Fork 6
Power factor multiplier doesn't appropriately map to A/B #21
Description
Hi @ashionky,
I was playing with the EM16 and the homeassistant "Energy flow" diagram which helps map the power from an individual branch current to the main branch current.
To get this to plot right:
- I setup each A2,3,4, and C1,2,3... as devices with A1 as the "upstream device"
- I setup B2,3,4... with B2 as the "upstream device"
In this setup the I noticed that if I use the "Circuit factor" feature in the REFOSS app on say the A2 current sensor because it's a 240V oven appliance and I only connected the current monitoring on L1 not both L1 and L2, it doesn't appropriately map the current to a "A2-B1 branch".
Ie, now I have 2x the current, but because I setup the relationship between A1 as a upstream device and A2 as a child in home assistant, the current measurement is 2x on A1 rather than 1xA2 on A1 and 1xA2 on B1.
I was trying to think of a good way to implement something different than just a simple circuit factor option in the app/ui to create a "virtual mirror" device for the other B1/L2 branch.
One potential way to deploy in the refoss gui that might integrate nicely in home assistant:
- Create a checkbox in the circuit factor page that says something like "virtual 240V" which would then create a new V-A2 measurement that mirrored the A2 measurement (this then could show up in the home assistant and be mapped to the B1 as a child power net.
- The perk of this is both homeassistant tracking and the REFOSS app tracking could be aware of the 2x factor, but it wouldn't mess up the home assistant individual device accounting map.
I think it's probably easy enough to do in the homeassistant app by making a bunch of virtual sensors that do math using the real sensor data, then only using these in the Individual devices monitoring section of home assistant, but really think this should belong in the app?