configuration issue with sensor groups #402
Replies: 6 comments 6 replies
-
Hi @Roving-Ronin was working on this and can help you |
Beta Was this translation helpful? Give feedback.
-
"Sunsynk Card - AUX - Energy Daily" is the energy_meter (enhanced version of the HA utility_meter) that is tracking the kWh used each day by the devices in the SunSynk cards 'AUX' version (the blue-ish section in the top right of example card below). Highlighed by the red box is the value of this energy meter, whilst in yellow below it is the current 'Active Power' of the same devices. In regards 'what devices' to add, this is entirely up to yourself. By default the 'AUX' section of the card is for things like monitoring an auxiliary power feed (i.e. generator set) but given most people won't have this, for the Huawei / iStore examples it has been repurposed to allow people to so their major essential items in the house. In the example above, the users main critical items that use the most power are his 'ITC Infrastructure' (i.e. NAS, Router, LAN Switches etc) and the other is his 'IT - Desktops'. These where existing groups that he had to provide a 'sum' value of those device types Active Power utilisation, that are showing the 421W and 159W values. To get the 'Sunsynk Card - AUX - Active Power' sensor that shows the value for these two other groups, he's then created group of this name... Steps: Settings / Devices & Services / Helpers Tab. Then 'Create Helper' and choose 'Group', then 'Sensor Group' and enter the name 'Sunsynk Card - AUX - Active Power', then add the sensors for whatever devices POWER entities you want to track, and finish by setting Type to 'SUM'. You now have a group giving the POWER of the devices, but you now need to convert POWER into ENERGY (i.e. Watts to kWh). To do this you now need to create another helper. Steps: Settings / Devices & Services / Helpers Tab. Then 'Create Helper' and choose 'Integration - Riemann sum integral', and complete it as per: OK you now have a sensor providing the ENERGY used by all the devices, whose POWER sensors you added to the AUX Group. This sensor however will keep on adding the power used as an ever increasing total (i.e. a 'lifetime' value), and you need a sensor that provides you with the daily amount of Energy (kWh) that AUX group used for the SunSync card. So now you need to create a final helper, that is a utility meter (or if your into YAML you can create it using the energy_meter integration, that will allow you to also specify the current energy cost and have it automatically create another sensors that tracks the daily cost $ for the energy used by the AUX group). To create a simple utility meter though. Steps: Settings / Devices & Services / Helpers Tab. Then 'Create Helper' and choose 'Utility Meter' and configure as per below: In the example yaml code, for entering into the card in the dashboard, the utility meter you've just created is defined with the following that will have it appear in the red highlighted box:
Whilst the POWER reading, that appears in the Yellow highlighted box is already defined at:
Before you ask, the 'Sunsynk Card - Non Essential - Active Power' is exactly the same, but only having the first step of creating a helper sensor group to sum up the non-essential items you choose to show at the bottom right of the card. The Hauwei / iStore examples being the AirCon and EV Charger. So if that reflects the devices you'd choose for there, then you'd create this 'Sunsynk Card - Non Essential - Active Power' (sensor group) and add the Power sensors of your AirCon/HVAC and EV Charger to it, and also set it to show the SUM of those sensors. Not needed or relaated to the SunSynk card, you'll probably have a utility (or better energy_meter) setup for these power hungry devices to track their Daily/Weekly/Monthly/Yearly Energy (kWh) consumption though :-) |
Beta Was this translation helpful? Give feedback.
-
Thank you very much, very detailed instructions. I've understood everything, but I'm still not sure whether I prefer to classify the future EV charger as essential. But I'll just try it out when it's installed. |
Beta Was this translation helpful? Give feedback.
-
Hi, I can't find the reason why my sensor.inverters_active_power is unavailable. The sensor in the huawei_derived_sensors.yaml file is normally set by {% set inverter_1_active_power = states('sensor.inverter_active_power') | float(default=0) %}. sensor.inverter_active_power have a valid value but inverter_1_active_power is unavailable. The Inverter String sensors above in the yaml are working fine, but all below "Start: Inverters - Combined values for 2 inverters" not, execpt inverters_internal_temperature. any idea? |
Beta Was this translation helpful? Give feedback.
-
Thanks for pointing me to the template function, really helpful. I pasted the complete yaml code of inverters_active_power and I can see that it is working as expected, there is a valid value at the end. But the availability (last 2 lines) is set to FALSE because I only have one inverter and the AND condition leads to false. Shouldn't it actually be OR to get TRUE if at least one of the inverters delivers correct values? Currently {{ states('sensor.inverters_active_power') }} returns the value unavailable. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello,
first of all, thanks a lot for you effort and patience. I am really grateful and always amazed at what is possible thanks to the community.
I'm following the instructions on https://slipx06.github.io/sunsynk-power-flow-card/examples/huawei.html to get the card running with my Huawei setup (SUN2000-10KTL-M1 inverter with Luna2000 Battery). Unfortunately I stuck at the point where I have to create the sensor groups. Starting with the creation of group "Sunsynk Card - AUX - Energy Daily" I have no clue what members to add to this group. In the purpose column its stated "Group should be populated with the daily energy sensors of all the devices... ", but what are these devices?
Thanks a lot,
ranug
Beta Was this translation helpful? Give feedback.
All reactions