Clicked on it and read it.
The screenshot shows how I added the code provided by you. In the links provided, I can’t find any other information that will help the sensor.trockner to show up as an entity that can be used in the energy dashboard.
Sorry for not getting it right, but as I mentioned earlier, I’m not familiar with customizing and coding.
The icon of Trockner and Waschmaschine changed to the one used in the code. That implies to me, the code is working.
Unfortunately the sensors still do not show up in the energy dashboard. I can’t add them to track the energyconsumption.
Is the sensor really delivers W? And not Wh? I’m not using it anymore.
If yes, then you need another one. Helper → Rieman Integral (left rieman sum) with source of your sensor. And use this instead for the energy dashboard.
Notice the different JSON paths for the two devices. The first one, “Waschknecht”, is the original Laundrify. The second, “Trockner”, is the newer Laundrify Mini. Their RESTful endpoints provide different JSON payloads.
So, if anyone is interested in more details, just ask or send me a PN.
@Hoempi Big thank you for all your input. This worked very well for me.
@xlarry Just curious: Why does your integration not simply consume the information from the local API? As this discussion shows, it would allow to also get power consumption, remove dependency on cloud connections and also reduce API calls to your cloud backend (which may incurr costs for you).
first of all: the power and energy consumption has been merged and should be available in the upcoming HA release (2024.10). Sorry for the exceptionally long time it took to release this feature - we will try to move faster in the future!
@Flamacue the detection mechanism has been implemented on server-side (not in the firmware of the power plug), so the cycle state is not available in the local API of the power plug. The latest power measurements however will be pulled directly from the power plug.
Please note that I did not test/validate the above given config - but it might be a good start. If it doesn’t work on first try, the corresponding docs might be helpful
You could add a utility meter to count cycles within a specific period.
I’m sure the community can help if you let us know where exactly you’re stuck
I got the following sensor after adding the above given config (it started to count after adding the config. Also, the weekly counter just got reset this morning, which is why it shows 0):
Talking about providing further data to HA: what exactly are you missing? Please be as specific as possible - if there is anybody else requesting the same feature, we’ll be happy to consider the implementation
Thanks for your help, unfortunately I don’t know how to create a templeate like the above. When I’m trying to use the code above I’m getting an error which I don’t understand.
I think I just leave it like that. Thanks for your support.