mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-07 21:54:05 +00:00
Reverted TPLink changes. added in new device classes to better represent the power inputs.
This commit is contained in:
parent
a433c4c6ff
commit
ade5002247
@ -25,7 +25,6 @@ sensor:
|
|||||||
name: Grid Status
|
name: Grid Status
|
||||||
scan_interval: 60
|
scan_interval: 60
|
||||||
value_template: "{{ value_json.grid_status == 'SystemGridConnected' }}"
|
value_template: "{{ value_json.grid_status == 'SystemGridConnected' }}"
|
||||||
device_class: power
|
|
||||||
|
|
||||||
- platform: rest
|
- platform: rest
|
||||||
name: House now
|
name: House now
|
||||||
@ -34,6 +33,7 @@ sensor:
|
|||||||
verify_ssl: false
|
verify_ssl: false
|
||||||
value_template: '{{ value_json.load.instant_power / 1000 | round(2) }}'
|
value_template: '{{ value_json.load.instant_power / 1000 | round(2) }}'
|
||||||
unit_of_measurement: kWh
|
unit_of_measurement: kWh
|
||||||
|
device_class: power
|
||||||
|
|
||||||
- platform: rest
|
- platform: rest
|
||||||
name: Grid now
|
name: Grid now
|
||||||
@ -42,6 +42,7 @@ sensor:
|
|||||||
verify_ssl: false
|
verify_ssl: false
|
||||||
value_template: '{{ value_json.site.instant_power / 1000 | round(2) }}'
|
value_template: '{{ value_json.site.instant_power / 1000 | round(2) }}'
|
||||||
unit_of_measurement: kWh
|
unit_of_measurement: kWh
|
||||||
|
device_class: power
|
||||||
|
|
||||||
- platform: rest
|
- platform: rest
|
||||||
name: Solar now
|
name: Solar now
|
||||||
@ -50,6 +51,7 @@ sensor:
|
|||||||
verify_ssl: false
|
verify_ssl: false
|
||||||
value_template: '{{ value_json.solar.instant_power / 1000 | round(2) }}'
|
value_template: '{{ value_json.solar.instant_power / 1000 | round(2) }}'
|
||||||
unit_of_measurement: kWh
|
unit_of_measurement: kWh
|
||||||
|
device_class: power
|
||||||
|
|
||||||
- platform: rest
|
- platform: rest
|
||||||
name: PowerWall Battery now
|
name: PowerWall Battery now
|
||||||
@ -58,7 +60,7 @@ sensor:
|
|||||||
verify_ssl: false
|
verify_ssl: false
|
||||||
value_template: '{{ value_json.battery.instant_power / 1000 | round(2) }}'
|
value_template: '{{ value_json.battery.instant_power / 1000 | round(2) }}'
|
||||||
unit_of_measurement: kWh
|
unit_of_measurement: kWh
|
||||||
device_class: battery
|
device_class: power
|
||||||
|
|
||||||
- platform: rest
|
- platform: rest
|
||||||
name: PowerWall Battery Capacity
|
name: PowerWall Battery Capacity
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
###################################
|
###################################
|
||||||
tplink:
|
tplink:
|
||||||
discovery: true
|
discovery: true
|
||||||
# switch:
|
switch:
|
||||||
# - host: 192.168.10.116
|
- host: 192.168.10.116
|
||||||
|
Loading…
x
Reference in New Issue
Block a user