windos2k

P1mon sensors

Jan 6th, 2021 (edited)
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 7.58 KB | None | 0 0
  1. #Huidig verbruik
  2. - platform: rest
  3.   resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=on
  4.   name: Huidig verbruik elektriciteit
  5.   value_template: '{{ value_json.0.CONSUMPTION_W }}'
  6.   unit_of_measurement: "W"
  7.  
  8. - platform: rest
  9.   resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=on
  10.   name: Huidig geleverde elektriciteit
  11.   value_template: '{{ value_json.0.PRODUCTION_W }}'
  12.   unit_of_measurement: "W"
  13.  
  14. - platform: rest
  15.   resource: http://192.168.1.42/api/v1/powergas/hour?limit=1&json=object&round=off
  16.   name: Huidig verbruik gas
  17.   value_template: '{{ value_json.0.CONSUMPTION_GAS_DELTA_M3 | round(4) }}'
  18.   unit_of_measurement: "m³/uur"
  19.  
  20. #Meterstanden
  21. - platform: rest
  22.   resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=off
  23.   name: Meterstand elektriciteit hoog tarief
  24.   value_template: '{{ value_json.0.CONSUMPTION_KWH_HIGH | round(2) }}'
  25.   unit_of_measurement: "kWh"
  26.  
  27.  
  28. - platform: rest
  29.   resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=off
  30.   name: Meterstand elektriciteit laag tarief
  31.   value_template: '{{ value_json.0.CONSUMPTION_KWH_LOW | round(2) }}'
  32.   unit_of_measurement: "kWh"
  33.  
  34. - platform: rest
  35.   resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=off
  36.   name: Meterstand elektriciteit geleverd hoog tarief
  37.   value_template: '{{ value_json.0.PRODUCTION_KWH_HIGH | round(2) }}'
  38.   unit_of_measurement: "kWh"
  39.  
  40. - platform: rest
  41.   resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=off
  42.   name: Meterstand elektriciteit geleverd laag tarief
  43.   value_template: '{{ value_json.0.PRODUCTION_KWH_LOW | round(2) }}'
  44.   unit_of_measurement: "kWh"
  45.  
  46. - platform: rest
  47.   resource: http://192.168.1.42/api/v1/smartmeter?limit=1&json=object&round=off
  48.   name: Meterstand gas
  49.   value_template: '{{ value_json.0.CONSUMPTION_GAS_M3 | round(4) }}'
  50.   unit_of_measurement: "m³"
  51.  
  52. #Kosten per dag  
  53. - platform: rest
  54.   resource: http://192.168.1.42/api/v1/financial/day?limit=1&json=object&round=off
  55.   name: Kosten elektriciteit hoog tarief per dag
  56.   value_template: '{{ value_json.0.CONSUMPTION_COST_ELECTRICITY_HIGH | round(2) }}'
  57.   unit_of_measurement: "€"
  58.  
  59. - platform: rest
  60.   resource: http://192.168.1.42/api/v1/financial/day?limit=1&json=object&round=off
  61.   name: Kosten elektriciteit laag tarief per dag
  62.   value_template: '{{ value_json.0.CONSUMPTION_COST_ELECTRICITY_LOW | round(2) }}'
  63.   unit_of_measurement: "€"
  64.  
  65. - platform: rest
  66.   resource: http://192.168.1.42/api/v1/financial/day?limit=1&json=object&round=off
  67.   name: Opbrengst geleverde elektriciteit hoog tarief per dag
  68.   value_template: '{{ value_json.0.PRODUCTION_REVENUES_ELECTRICITY_HIGH | round(2) }}'
  69.   unit_of_measurement: "€"
  70.  
  71. - platform: rest
  72.   resource: http://192.168.1.42/api/v1/financial/day?limit=1&json=object&round=off
  73.   name: Opbrengst geleverde elektriciteit laag tarief per dag
  74.   value_template: '{{ value_json.0.PRODUCTION_REVENUES_ELECTRICITY_LOW | round(2) }}'
  75.   unit_of_measurement: "€"
  76.  
  77. - platform: rest
  78.   resource: http://192.168.1.42/api/v1/financial/day?limit=1&json=object&round=off
  79.   name: Kosten gas per dag
  80.   value_template: '{{ value_json.0.CONSUMPTION_COST_GAS | round(2) }}'
  81.   unit_of_measurement: "€"
  82.  
  83. #Kosten per maand
  84. - platform: rest
  85.   resource: http://192.168.1.42/api/v1/financial/month?limit=1&json=object&round=off
  86.   name: Kosten elektriciteit hoog tarief per maand
  87.   value_template: '{{ value_json.0.CONSUMPTION_COST_ELECTRICITY_HIGH | round(2) }}'
  88.   unit_of_measurement: "€"
  89.  
  90. - platform: rest
  91.   resource: http://192.168.1.42/api/v1/financial/month?limit=1&json=object&round=off
  92.   name: Kosten elektriciteit laag tarief per maand
  93.   value_template: '{{ value_json.0.CONSUMPTION_COST_ELECTRICITY_LOW | round(2) }}'
  94.   unit_of_measurement: "€"
  95.  
  96. - platform: rest
  97.   resource: http://192.168.1.42/api/v1/financial/month?limit=1&json=object&round=off
  98.   name: Opbrengst geleverde elektriciteit hoog tarief per maand
  99.   value_template: '{{ value_json.0.PRODUCTION_REVENUES_ELECTRICITY_HIGH | round(2) }}'
  100.   unit_of_measurement: "€"
  101.  
  102. - platform: rest
  103.   resource: http://192.168.1.42/api/v1/financial/month?limit=1&json=object&round=off
  104.   name: Opbrengst geleverde elektriciteit laag tarief per maand
  105.   value_template: '{{ value_json.0.PRODUCTION_REVENUES_ELECTRICITY_LOW | round(2) }}'
  106.   unit_of_measurement: "€"
  107.  
  108. - platform: rest
  109.   resource: http://192.168.1.42/api/v1/financial/month?limit=1&json=object&round=off
  110.   name: Kosten gas per maand
  111.   value_template: '{{ value_json.0.CONSUMPTION_COST_GAS | round(2) }}'
  112.   unit_of_measurement: "€"
  113.  
  114. #verbruik per dag
  115. - platform: rest
  116.   resource: http://192.168.1.42/api/v1/powergas/day?limit=1&json=object&round=off
  117.   name: Verbruik elektriciteit per dag
  118.   value_template: '{{ value_json.0.CONSUMPTION_DELTA_KWH | round(2) }}'
  119.   unit_of_measurement: "kWh"
  120.  
  121. - platform: rest
  122.   resource: http://192.168.1.42/api/v1/powergas/day?limit=1&json=object&round=off
  123.   name: Geleverde elektriciteit per dag
  124.   value_template: '{{ value_json.0.PRODUCTION_DELTA_KWH | round(2) }}'
  125.   unit_of_measurement: "kWh"
  126.  
  127. - platform: rest
  128.   resource: http://192.168.1.42/api/v1/powergas/day?limit=1&json=object&round=off
  129.   name: Verbruik gas per dag
  130.   value_template: '{{ value_json.0.CONSUMPTION_GAS_DELTA_M3 | round(4) }}'
  131.   unit_of_measurement: "m³"
  132.  
  133. #verbruik per maand
  134. - platform: rest
  135.   resource: http://192.168.1.42/api/v1/powergas/month?limit=1&json=object&round=off
  136.   name: Verbruik elektriciteit per maand
  137.   value_template: '{{ value_json.0.CONSUMPTION_DELTA_KWH | round(2) }}'
  138.   unit_of_measurement: "kWh"
  139.  
  140. - platform: rest
  141.   resource: http://192.168.1.42/api/v1/powergas/month?limit=1&json=object&round=off
  142.   name: Geleverde elektriciteit per maand
  143.   value_template: '{{ value_json.0.PRODUCTION_DELTA_KWH | round(2) }}'
  144.   unit_of_measurement: "kWh"
  145.  
  146. - platform: rest
  147.   resource: http://192.168.1.42/api/v1/powergas/month?limit=1&json=object&round=off
  148.   name: Verbruik gas per maand
  149.   value_template: '{{ value_json.0.CONSUMPTION_GAS_DELTA_M3 | round(4) }}'
  150.   unit_of_measurement: "m³"
  151.  
  152. #Stroom tarief
  153. - platform: rest
  154.   resource: http://192.168.1.42/api/v1/configuration?json=object&id=1
  155.   name: Laag tarief elektriciteit
  156.   value_template: '{{ value_json.0.PARAMETER }}'
  157.   unit_of_measurement: "€"
  158.  
  159. #Stroom kosten
  160. - platform: template
  161.   sensors:
  162.     energie_kosten_dag:
  163.       value_template: "{{ states('sensor.kosten_elektriciteit_hoog_tarief_per_dag') | float | round(2) + states('sensor.kosten_elektriciteit_laag_tarief_per_dag') | float | round(2) }}"
  164.       unit_of_measurement: "€"
  165.            
  166. - platform: template
  167.   sensors:
  168.     energie_kosten_maand:
  169.       value_template: "{{ states('sensor.kosten_elektriciteit_hoog_tarief_per_maand') | float | round(2) + states('sensor.kosten_elektriciteit_laag_tarief_per_maand') | float | round(2) }}"
  170.       unit_of_measurement: "€"
  171.  
  172. - platform: template
  173.   sensors:
  174.     energie_opbrengsten_maand:
  175.       friendly_name: Opbrengst geleverd per maand
  176.       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) }}"
  177.       unit_of_measurement: "€"
  178.  
  179. - platform: template
  180.   sensors:
  181.     energie_opbrengsten_dag:
  182.       friendly_name: Opbrengst geleverd per dag
  183.       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) }}"
  184.       unit_of_measurement: "€"
Add Comment
Please, Sign In to add comment