Skip to content

Instantly share code, notes, and snippets.

@theundefined
Last active January 9, 2025 22:34
Show Gist options
  • Save theundefined/a2e64b4de1f914041b17dcfda3140f9d to your computer and use it in GitHub Desktop.
Save theundefined/a2e64b4de1f914041b17dcfda3140f9d to your computer and use it in GitHub Desktop.
rest_command:
pvmonitor:
url: 'http://dane.pvmonitor.pl/pv/get2.php?idl=IDUZYTKOWNIKA&p=HASLO{{pvm}}'
method: GET
(w automations)
- id: pvmonitorproduction
alias: PvMonitorProduction
description: PV_Production
trigger:
- minutes: /5
platform: time_pattern
action:
- data_template:
pvm: '&tm={{now().strftime("%Y-%m-%d%%20%H:%M:%S")}}&F1={{states("sensor.pv_gen_meter")}}&F4={{(states("sensor.pv_gen_meter")|float
+ states("sensor.energy_total")|float - states("sensor.energy_total_returned")|float)|round(3)}}&F102={{states("sensor.energy_total")|float|round(3)}}&F106={{states("sensor.energy_total_returned")|float(0)|round(3)}}&F2={{(states("sensor.pv_voltage_a")|float(0))}}&F3={{(states("sensor.pv_current_a")|float(0))}}&F5={{(states("sensor.pv_voltage_b")|float(0))}}&F6={{(states("sensor.pv_current_b")|float(0))}}&F16={{(states("sensor.temperatura_na_dworze")|float)}}&F116={{states("sensor.energy_total")}}&F10={{states("sensor.shellyproem50_08f9e0e61be0_em1_total_active_energy")}}'
service: rest_command.pvmonitor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment