Reverted TPLink changes. added in new device classes to better represent the power inputs.

This commit is contained in:
ccostan 2019-07-16 18:24:03 -04:00
parent a433c4c6ff
commit ade5002247
2 changed files with 6 additions and 4 deletions

View File

@ -25,7 +25,6 @@ sensor:
name: Grid Status
scan_interval: 60
value_template: "{{ value_json.grid_status == 'SystemGridConnected' }}"
device_class: power
- platform: rest
name: House now
@ -34,6 +33,7 @@ sensor:
verify_ssl: false
value_template: '{{ value_json.load.instant_power / 1000 | round(2) }}'
unit_of_measurement: kWh
device_class: power
- platform: rest
name: Grid now
@ -42,6 +42,7 @@ sensor:
verify_ssl: false
value_template: '{{ value_json.site.instant_power / 1000 | round(2) }}'
unit_of_measurement: kWh
device_class: power
- platform: rest
name: Solar now
@ -50,6 +51,7 @@ sensor:
verify_ssl: false
value_template: '{{ value_json.solar.instant_power / 1000 | round(2) }}'
unit_of_measurement: kWh
device_class: power
- platform: rest
name: PowerWall Battery now
@ -58,7 +60,7 @@ sensor:
verify_ssl: false
value_template: '{{ value_json.battery.instant_power / 1000 | round(2) }}'
unit_of_measurement: kWh
device_class: battery
device_class: power
- platform: rest
name: PowerWall Battery Capacity

View File

@ -6,5 +6,5 @@
###################################
tplink:
discovery: true
# switch:
# - host: 192.168.10.116
switch:
- host: 192.168.10.116