Advertisement
gio_aggiustatutto

Helpers YAML code

Oct 15th, 2024
875
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.14 KB | None | 0 0
  1. sensor:
  2.   - platform: statistics
  3.     name: "Energy consumption Week"
  4.     entity_id: sensor.energy_meter_energy_1
  5.     state_characteristic: sum_differences_nonnegative
  6.     max_age:
  7.       days: 7
  8.        
  9.   - platform: statistics
  10.     name: "Energy consumption Month"
  11.     entity_id: sensor.energy_meter_energy_1
  12.     state_characteristic: sum_differences_nonnegative
  13.     max_age:
  14.       days: 28
  15.  
  16.   - platform: statistics
  17.     name: "Energy consumption Year"
  18.     entity_id: sensor.energy_meter_energy_1
  19.     state_characteristic: sum_differences_nonnegative
  20.     max_age:
  21.       days: 365
  22.      
  23.   - platform: statistics
  24.     name: "Energy consumption 365 days"
  25.     entity_id: sensor.energy_meter_energy_1
  26.     state_characteristic: sum_differences_nonnegative
  27.     max_age:
  28.       days: 365
  29.  
  30.   - platform: statistics
  31.     name: "Energy consumption Max 24H"
  32.     entity_id: sensor.energy_meter_power_1
  33.     state_characteristic: value_max
  34.     max_age:
  35.       hours: 24
  36.      
  37.   - platform: statistics
  38.     name: "Energy consumption Min 24H"
  39.     entity_id: sensor.energy_meter_power_1
  40.     state_characteristic: value_min
  41.     max_age:
  42.       hours: 24
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement