Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Huidig verbruik
- - platform: rest
- resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=on
- name: Huidig verbruik elektriciteit
- value_template: '{{ value_json.0.CONSUMPTION_W }}'
- unit_of_measurement: "W"
- - platform: rest
- resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=on
- name: Huidig geleverde elektriciteit
- value_template: '{{ value_json.0.PRODUCTION_W }}'
- unit_of_measurement: "W"
- - platform: rest
- resource: http://192.168.1.42/api/v1/powergas/hour?limit=1&json=object&round=off
- name: Huidig verbruik gas
- value_template: '{{ value_json.0.CONSUMPTION_GAS_DELTA_M3 | round(4) }}'
- unit_of_measurement: "m³/uur"
- #Meterstanden
- - platform: rest
- resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=off
- name: Meterstand elektriciteit hoog tarief
- value_template: '{{ value_json.0.CONSUMPTION_KWH_HIGH | round(2) }}'
- unit_of_measurement: "kWh"
- - platform: rest
- resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=off
- name: Meterstand elektriciteit laag tarief
- value_template: '{{ value_json.0.CONSUMPTION_KWH_LOW | round(2) }}'
- unit_of_measurement: "kWh"
- - platform: rest
- resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=off
- name: Meterstand elektriciteit geleverd hoog tarief
- value_template: '{{ value_json.0.PRODUCTION_KWH_HIGH | round(2) }}'
- unit_of_measurement: "kWh"
- - platform: rest
- resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=off
- name: Meterstand elektriciteit geleverd laag tarief
- value_template: '{{ value_json.0.PRODUCTION_KWH_LOW | round(2) }}'
- unit_of_measurement: "kWh"
- - platform: rest
- resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=off
- name: Meterstand gas
- value_template: '{{ value_json.0.CONSUMPTION_GAS_M3 | round(4) }}'
- unit_of_measurement: "m³"
- #Kosten per dag
- - platform: rest
- resource: http://192.168.1.42/api/v1/financial/day?limit=1&json=object&round=off
- name: Kosten elektriciteit hoog tarief per dag
- value_template: '{{ value_json.0.CONSUMPTION_COST_ELECTRICITY_HIGH | round(2) }}'
- unit_of_measurement: "€"
- - platform: rest
- resource: http://192.168.1.42/api/v1/financial/day?limit=1&json=object&round=off
- name: Kosten elektriciteit laag tarief per dag
- value_template: '{{ value_json.0.CONSUMPTION_COST_ELECTRICITY_LOW | round(2) }}'
- unit_of_measurement: "€"
- - platform: rest
- resource: http://192.168.1.42/api/v1/financial/day?limit=1&json=object&round=off
- name: Opbrengst geleverde elektriciteit hoog tarief per dag
- value_template: '{{ value_json.0.PRODUCTION_REVENUES_ELECTRICITY_HIGH | round(2) }}'
- unit_of_measurement: "€"
- - platform: rest
- resource: http://192.168.1.42/api/v1/financial/day?limit=1&json=object&round=off
- name: Opbrengst geleverde elektriciteit laag tarief per dag
- value_template: '{{ value_json.0.PRODUCTION_REVENUES_ELECTRICITY_LOW | round(2) }}'
- unit_of_measurement: "€"
- - platform: rest
- resource: http://192.168.1.42/api/v1/financial/day?limit=1&json=object&round=off
- name: Kosten gas per dag
- value_template: '{{ value_json.0.CONSUMPTION_COST_GAS | round(2) }}'
- unit_of_measurement: "€"
- #Kosten per maand
- - platform: rest
- resource: http://192.168.1.42/api/v1/financial/month?limit=1&json=object&round=off
- name: Kosten elektriciteit hoog tarief per maand
- value_template: '{{ value_json.0.CONSUMPTION_COST_ELECTRICITY_HIGH | round(2) }}'
- unit_of_measurement: "€"
- - platform: rest
- resource: http://192.168.1.42/api/v1/financial/month?limit=1&json=object&round=off
- name: Kosten elektriciteit laag tarief per maand
- value_template: '{{ value_json.0.CONSUMPTION_COST_ELECTRICITY_LOW | round(2) }}'
- unit_of_measurement: "€"
- - platform: rest
- resource: http://192.168.1.42/api/v1/financial/month?limit=1&json=object&round=off
- name: Opbrengst geleverde elektriciteit hoog tarief per maand
- value_template: '{{ value_json.0.PRODUCTION_REVENUES_ELECTRICITY_HIGH | round(2) }}'
- unit_of_measurement: "€"
- - platform: rest
- resource: http://192.168.1.42/api/v1/financial/month?limit=1&json=object&round=off
- name: Opbrengst geleverde elektriciteit laag tarief per maand
- value_template: '{{ value_json.0.PRODUCTION_REVENUES_ELECTRICITY_LOW | round(2) }}'
- unit_of_measurement: "€"
- - platform: rest
- resource: http://192.168.1.42/api/v1/financial/month?limit=1&json=object&round=off
- name: Kosten gas per maand
- value_template: '{{ value_json.0.CONSUMPTION_COST_GAS | round(2) }}'
- unit_of_measurement: "€"
- #verbruik per dag
- - platform: rest
- resource: http://192.168.1.42/api/v1/powergas/day?limit=1&json=object&round=off
- name: Verbruik elektriciteit per dag
- value_template: '{{ value_json.0.CONSUMPTION_DELTA_KWH | round(2) }}'
- unit_of_measurement: "kWh"
- - platform: rest
- resource: http://192.168.1.42/api/v1/powergas/day?limit=1&json=object&round=off
- name: Geleverde elektriciteit per dag
- value_template: '{{ value_json.0.PRODUCTION_DELTA_KWH | round(2) }}'
- unit_of_measurement: "kWh"
- - platform: rest
- resource: http://192.168.1.42/api/v1/powergas/day?limit=1&json=object&round=off
- name: Verbruik gas per dag
- value_template: '{{ value_json.0.CONSUMPTION_GAS_DELTA_M3 | round(4) }}'
- unit_of_measurement: "m³"
- #verbruik per maand
- - platform: rest
- resource: http://192.168.1.42/api/v1/powergas/month?limit=1&json=object&round=off
- name: Verbruik elektriciteit per maand
- value_template: '{{ value_json.0.CONSUMPTION_DELTA_KWH | round(2) }}'
- unit_of_measurement: "kWh"
- - platform: rest
- resource: http://192.168.1.42/api/v1/powergas/month?limit=1&json=object&round=off
- name: Geleverde elektriciteit per maand
- value_template: '{{ value_json.0.PRODUCTION_DELTA_KWH | round(2) }}'
- unit_of_measurement: "kWh"
- - platform: rest
- resource: http://192.168.1.42/api/v1/powergas/month?limit=1&json=object&round=off
- name: Verbruik gas per maand
- value_template: '{{ value_json.0.CONSUMPTION_GAS_DELTA_M3 | round(4) }}'
- unit_of_measurement: "m³"
- #Stroom tarief
- - platform: rest
- resource: http://192.168.1.42/api/v1/configuration?json=object&id=1
- name: Laag tarief elektriciteit
- value_template: '{{ value_json.0.PARAMETER }}'
- unit_of_measurement: "€"
- #Stroom kosten
- - platform: template
- sensors:
- energie_kosten_dag:
- value_template: "{{ states('sensor.kosten_elektriciteit_hoog_tarief_per_dag') | float | round(2) + states('sensor.kosten_elektriciteit_laag_tarief_per_dag') | float | round(2) }}"
- unit_of_measurement: "€"
- - platform: template
- sensors:
- energie_kosten_maand:
- value_template: "{{ states('sensor.kosten_elektriciteit_hoog_tarief_per_maand') | float | round(2) + states('sensor.kosten_elektriciteit_laag_tarief_per_maand') | float | round(2) }}"
- unit_of_measurement: "€"
- - platform: template
- sensors:
- energie_opbrengsten_maand:
- friendly_name: Opbrengst geleverd per maand
- value_template: "{{ states('sensor.opbrengst_geleverde_elektriciteit_hoog_tarief_per_maand') | float | round(2) + states('sensor.opbrengst_geleverde_elektriciteit_laag_tarief_per_maand') | float | round(2) }}"
- unit_of_measurement: "€"
- - platform: template
- sensors:
- energie_opbrengsten_dag:
- friendly_name: Opbrengst geleverd per dag
- value_template: "{{ states('sensor.opbrengst_geleverde_elektriciteit_hoog_tarief_per_dag') | float | round(2) + states('sensor.opbrengst_geleverde_elektriciteit_laag_tarief_per_dag') | float | round(2) }}"
- unit_of_measurement: "€"
Add Comment
Please, Sign In to add comment