Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 1. W template.yaml
- # Watt z gmiazdka, current_consumption = atrybut gniazdka (watt)
- - sensor:
- - name: "Testowe gniazdko watt"
- unit_of_measurement: 'W'
- state: "{{ state_attr('switch.tuya_wykop','current_consumption') }}"
- device_class: power
- unique_id: testowegniazdkowatt
- # 2. W sensor.yaml W source: dodajemy nazwę sensora z punktu "1"
- # watt na kWh
- - platform: integration
- source: sensor.testowe_gniazdko_watt
- unit_prefix: k
- round: 2
- name: "Testowe gniazdko kWh"
- unique_id: testowegniazdkokwh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement