Which is the best way to achieve this? create a tplink sensor?
EDIT:
Using template sensor I can get some values but the problem is with the values that have spaces in the name, like “Total Consumption”, this doesn’t work:
I was at first considering to get the energy monitor as a sensor, instead of being “attributes” on the switch, but indeed the template platform gets the job done. Here is how to get the “attributes” as a sensor in the UI:
Thanks @kirichkov !!! I get it working after edit the tplink switch component file for remove blank spaces in attributes names (i didn’t know this syntax in templates!).
No it’s not called anything - does it need to have a ‘friendly name’?
And it is a HS110, I can see current voltage in the pop-up when U click on it - together with total consumption, current consumption, etc.
Plus:
Wow @silvrr - that was easy :-S
I just gave it a name, replaced the string “switch.tplink_hs100” in the template section and now the voltage is showing up
I assume you know the cost per kWh not kW. If so then just create a template sensor and in the template multiply by your cost in kWh using the daily Kwh consumption.
so that would then be : value_template: ‘{{ states.switch.tplink_switch_hs110.attributes[“Daily consumption”] | replace(" kW", “”) | float * 0.095}}’ in which 0.095 is the cost in euro per kWh, right ?
It does sync the state and the underlying library is actively maintained, so software-wise it’s a solid choice. BUT, I’ve encountered occasional crashes of the plug itself. It stops responding unless you remove it and re-add it. I think it gets worse if you have severe voltage drops. At a place where electricity was unstable I had to reconnect it every few hours. If the voltage was stable at 230-240V, crashes happen once every few months, which I’d consider acceptable given the price.
My choice was to go with Z-wave plugs, however. They are marginally more expensive in Europe, if you are on the lookout for the Amazon deals.
Tks for the feedback! Bought one to see how things go! Was a bit apprehensive with kirichkov comentary regarding the restart of the plug. Will give it a try for one month to see how things go.
I’ve also had the recomendation of a sonoff S20 with an firmware replacement, and since it’s quite cheaper I’m considering also buying one just to compare both and decide. In the majority of the plugs I have the monitoring is not that important.
Hi, maybe I’m stupid but I can’t make my HS110 work since the last upgrades. The switch works and I can opperate it from HA, but I’cant see any values besides on/off.