2018-06-19 15:21:32 +00:00
|
|
|
######################################################################################################
|
|
|
|
### @Tesla Powerwall - https://www.vcloudinfo.com/2018/01/going-green-to-save-some-green-in-2018.html
|
|
|
|
# # @CCOSTAN
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
|
|
######################################################################################################
|
|
|
|
|
2018-08-03 17:55:28 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
group:
|
|
|
|
Power:
|
|
|
|
entities:
|
|
|
|
- sensor.powerwall_battery_capacity
|
|
|
|
- sensor.powerwall_battery_now
|
|
|
|
- sensor.grid_now
|
|
|
|
- sensor.house_now
|
|
|
|
- sensor.solar_now
|
|
|
|
- camera.grafana_solar_graph
|
|
|
|
#-------------------------------------------
|
|
|
|
|
2018-03-16 06:17:38 +00:00
|
|
|
sensor:
|
2018-06-19 15:21:32 +00:00
|
|
|
|
2018-03-16 06:17:38 +00:00
|
|
|
- platform: rest
|
2018-03-16 17:27:11 +00:00
|
|
|
name: House now
|
2018-06-25 20:12:51 +00:00
|
|
|
resource: https://192.168.10.90/api/meters/aggregates
|
2018-03-16 06:17:38 +00:00
|
|
|
method: GET
|
2018-06-25 20:12:51 +00:00
|
|
|
verify_ssl: false
|
2018-03-16 06:17:38 +00:00
|
|
|
value_template: '{{ value_json.load.instant_power / 1000 }}'
|
|
|
|
unit_of_measurement: kWh
|
|
|
|
|
|
|
|
- platform: rest
|
2018-03-16 17:27:11 +00:00
|
|
|
name: Grid now
|
2018-06-25 20:12:51 +00:00
|
|
|
resource: https://192.168.10.90/api/meters/aggregates
|
2018-03-16 06:17:38 +00:00
|
|
|
method: GET
|
2018-06-25 20:12:51 +00:00
|
|
|
verify_ssl: false
|
2018-03-16 06:17:38 +00:00
|
|
|
value_template: '{{ value_json.site.instant_power / 1000 }}'
|
|
|
|
unit_of_measurement: kWh
|
|
|
|
|
|
|
|
- platform: rest
|
2018-03-16 17:27:11 +00:00
|
|
|
name: Solar now
|
2018-06-25 20:12:51 +00:00
|
|
|
resource: https://192.168.10.90/api/meters/aggregates
|
2018-03-16 06:17:38 +00:00
|
|
|
method: GET
|
2018-06-25 20:12:51 +00:00
|
|
|
verify_ssl: false
|
2018-03-16 06:17:38 +00:00
|
|
|
value_template: '{{ value_json.solar.instant_power / 1000 }}'
|
|
|
|
unit_of_measurement: kWh
|
|
|
|
|
|
|
|
- platform: rest
|
|
|
|
name: PowerWall Battery now
|
2018-06-25 20:12:51 +00:00
|
|
|
resource: https://192.168.10.90/api/meters/aggregates
|
2018-03-16 06:17:38 +00:00
|
|
|
method: GET
|
2018-06-25 20:12:51 +00:00
|
|
|
verify_ssl: false
|
2018-03-16 06:17:38 +00:00
|
|
|
value_template: '{{ value_json.battery.instant_power / 1000 }}'
|
|
|
|
unit_of_measurement: kWh
|
|
|
|
|
|
|
|
- platform: rest
|
|
|
|
name: PowerWall Battery Capacity
|
2018-06-25 20:12:51 +00:00
|
|
|
resource: https://192.168.10.90/api/system_status/soe
|
2018-03-16 06:17:38 +00:00
|
|
|
method: GET
|
2018-06-25 20:12:51 +00:00
|
|
|
verify_ssl: false
|
2018-03-16 06:17:38 +00:00
|
|
|
value_template: '{{ 13500 // (100 / value_json.percentage) }}'
|
|
|
|
unit_of_measurement: W
|
|
|
|
|
|
|
|
#-------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# automation:
|
2018-06-19 15:21:32 +00:00
|
|
|
# Located in the Grafana package. Tweets out Solar Production Daily!
|