Last active
September 11, 2024 09:54
-
-
Save lowang/18601a2d063a1e933fb7c6e0e97a3c7c to your computer and use it in GitHub Desktop.
[PL] Energa Operator energy meter sensor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# multiscrape can be found in HACS, src: https://github.com/danieldotnl/ha-multiscrape | |
multiscrape: | |
- resource: 'https://mojlicznik.energa-operator.pl/dp/UserData.do' | |
scan_interval: 43200 # 12h | |
form_submit: | |
submit_once: True | |
resource: 'https://mojlicznik.energa-operator.pl/dp/UserLogin.do' | |
select: "#loginForm" | |
input: | |
j_username: email | |
j_password: 'password' | |
sensor: | |
- unique_id: energa_energy_meter_total_consumption | |
name: Energy meter total consumption | |
device_class: energy | |
state_class: total_increasing | |
unit_of_measurement: kWh | |
select: '#right > table > tr > td.last' | |
value_template: '{{ value | striptags | replace(" ", "") | replace(",", ".") | float }}' | |
on_error: | |
value: last |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Małe rozszerzenie. Działa dla taryfy G12/G12w, licznik dwukierunkowy. Dzięki autorowi.
configuration.yaml: