Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Loads default set of integrations. Do not remove.
- default_config:
- homeassistant:
- packages: !include_dir_merge_named packages/
- frontend:
- themes: !include_dir_merge_named themes
- # Text to speech
- tts:
- - platform: google_translate
- automation: !include automations.yaml
- script: !include scripts.yaml
- scene: !include scenes.yaml
- ################### PONIŻEJ WYWALASZ ###################
- sensor:
- - platform: rest
- scan_interval: 10
- name: Pvmt
- resource: http://pvmterminal.local/public
- value_template: "{{value_json.info.myip}}"
- json_attributes:
- - 18b20
- - rs485
- - info
- - platform: template
- sensors:
- temperatura_cwu:
- value_template: "{{ state_attr('sensor.pvmt','18b20')['ds18b20read'][0]['s_ds18b20v'] }}"
- device_class: temperature
- unit_of_measurement: "°C"
- bateria:
- value_template: "{{ state_attr('sensor.pvmt','rs485')['emetersread'][0]['em_Bat %'] }}"
- device_class: battery
- unit_of_measurement: "%"
- napiecie_l1:
- value_template: "{{ state_attr('sensor.pvmt','rs485')['emetersread'][1]['em_V L1'] }}"
- device_class: voltage
- unit_of_measurement: "V"
- napiecie_l2:
- value_template: "{{ state_attr('sensor.pvmt','rs485')['emetersread'][1]['em_V L2'] }}"
- device_class: voltage
- unit_of_measurement: "V"
- napiecie_l3:
- value_template: "{{ state_attr('sensor.pvmt','rs485')['emetersread'][1]['em_V L3'] }}"
- device_class: voltage
- unit_of_measurement: "V"
- prad_l1:
- value_template: "{{ state_attr('sensor.pvmt','rs485')['emetersread'][1]['em_I L1'] }}"
- device_class: current
- unit_of_measurement: "A"
- prad_l2:
- value_template: "{{ state_attr('sensor.pvmt','rs485')['emetersread'][1]['em_I L2'] }}"
- device_class: current
- unit_of_measurement: "A"
- prad_l3:
- value_template: "{{ state_attr('sensor.pvmt','rs485')['emetersread'][1]['em_I L3'] }}"
- device_class: current
- unit_of_measurement: "A"
- produkcja_dzienna:
- value_template: "{{ state_attr('sensor.pvmt','rs485')['emetersread'][0]['em_En day gen'] }}"
- device_class: energy
- unit_of_measurement: "kWh"
- produkcja_calkowita:
- value_template: "{{ state_attr('sensor.pvmt','rs485')['emetersread'][0]['em_En gen'] }}"
- device_class: energy
- unit_of_measurement: "kWh"
- zuzycie:
- value_template: "{{ state_attr('sensor.pvmt','rs485')['emetersread'][1]['em_Imp kWh'] }}"
- device_class: energy
- unit_of_measurement: "kWh"
- eksport:
- value_template: "{{ state_attr('sensor.pvmt','rs485')['emetersread'][1]['em_Exp kWh'] }}"
- device_class: energy
- unit_of_measurement: "kWh"
- pompa:
- value_template: "{{ state_attr('sensor.pvmt','pulse')['empulseread'][0]['em_kWh'] }}"
- device_class: energy
- unit_of_measurement: "kWh"
- nr_seryjny:
- value_template: "{{ state_attr('sensor.pvmt','info')['pvsno'] }}"
- uruchomienie:
- value_template: "{{ state_attr('sensor.pvmt','info')['pvstrt'] }}"
- adres_ip:
- value_template: "{{ state_attr('sensor.pvmt','info')['myip'] }}"
- ################### POWYŻEJ WYWALASZ ###################
- - platform: tauron_amiplus
- name: Tauron AMIPlus
- username:
- password:
- energy_meter_id: 590322429400825719
- monitored_variables:
- - consumption_reading
- - consumption_daily
- - consumption_monthly
- - consumption_yearly
- - consumption_last_12_months
- - generation_reading
- - generation_daily
- - generation_monthly
- - generation_yearly
- - generation_last_12_months
- - balanced_daily
- - balanced_monthly
- - balanced_last_12_months
- input_number:
- initial_energy_bank:
- min: 0
- max: 100000000
- step: 1
- mode: box
- template:
- - sensor:
- - name: Tauron energy bank
- state_class: total
- device_class: energy
- unique_id: tauron energy_bank
- icon: mdi:home-battery-outline
- state: "{{ (states('input_number.initial_energy_bank') | float(0) + states('sensor.tauron_amiplus_generation_yearly') | float(0) * 0.8 - states('sensor.tauron_amiplus_consumption_yearly') | float(0)) | round(3) }}"
- unit_of_measurement: "kWh"
- availability: "{{ states('sensor.tauron_amiplus_generation_yearly') | is_number and states('sensor.tauron_amiplus_consumption_yearly') | is_number }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement