Advertisement
jarekmor

PVmonitor

Feb 5th, 2023 (edited)
981
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.07 KB | None | 0 0
  1. sensor:
  2.   - platform: rest
  3.     scan_interval: 10
  4.     name: Pvmt
  5.     resource: http://pvmterminal.local/public
  6.     value_template: "{{value_json.info.myip}}"
  7.     json_attributes:
  8.      - 18b20
  9.       - rs485
  10.       - info
  11.   - platform: template
  12.     sensors:
  13.       temperatura_cwu:
  14.         value_template: "{{ state_attr('sensor.pvmt','18b20')['ds18b20read'][0]['s_ds18b20v'] }}"
  15.         device_class: temperature
  16.         unit_of_measurement: '°C'
  17.       bateria:
  18.         value_template: "{{ state_attr('sensor.pvmt','rs485')['emetersread'][0]['em_Bat %'] }}"
  19.         device_class: battery
  20.         unit_of_measurement: '%'
  21.       napiecie:
  22.         value_template: "{{ state_attr('sensor.pvmt','rs485')['emetersread'][1]['em_V L1'] }}"
  23.         device_class: voltage
  24.         unit_of_measurement: 'V'
  25.       nr_seryjny:
  26.         value_template: "{{ state_attr('sensor.pvmt','info')['pvsno'] }}"
  27.       uruchomienie:
  28.         value_template: "{{ state_attr('sensor.pvmt','info')['pvstrt'] }}"
  29.       adres_ip:
  30.         value_template: "{{ state_attr('sensor.pvmt','info')['myip'] }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement