File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
custom_components/plugwise-beta Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 22 "domain" : " plugwise-beta" ,
33 "name" : " Plugwise Beta for Home Assistant" ,
44 "documentation" : " https://github.com/plugwise/plugwise-beta" ,
5- "requirements" : [" Plugwise_Smile==0.1.5 " ],
5+ "requirements" : ["Plugwise_Smile==0.1.6 ],
66 "dependencies" : [],
77 "codeowners" : [" @CoMPaTech" ," @bouwew" ],
88 "config_flow" : true
Original file line number Diff line number Diff line change 3737 "thermostat" : ATTR_TEMPERATURE ,
3838 "temperature" : ATTR_TEMPERATURE ,
3939 "battery" : ATTR_BATTERY_LEVEL ,
40- "battery_charge" : ATTR_BATTERY_LEVEL ,
4140 "temperature_difference" : ATTR_TEMPERATURE ,
41+ "valve_position" : [
42+ "Valve Position" ,
43+ "%" ,
44+ "position" ,
45+ "mdi:valve" ,
46+ ],
4247 "electricity_consumed" : [
4348 "Current Consumed Power" ,
4449 "W" ,
@@ -278,7 +283,9 @@ def update(self):
278283 if data [self ._sensor ] is not None :
279284 measurement = data [self ._sensor ]
280285 if self ._sensor == "battery" :
281- measurement = int (measurement * 100 )
286+ measurement = measurement * 100
287+ if self ._unit_of_measurement == "%" :
288+ measurement = int (measurement )
282289 self ._state = measurement
283290
284291
You can’t perform that action at this time.
0 commit comments