danVnest-home-assistant/configuration/electricity/power.yaml

297 lines
14 KiB
YAML

powercalc:
energy_sensor_unit_prefix: k
create_domain_groups:
- light
- fan
- humidifier
sensors:
- create_group: Tracked
entities:
- entity_id: switch.living_room_aircon
fixed:
power: >
{% from 'custom_templates.jinja' import aircon_power %}
{{ aircon_power('living_room') }}
standby_power: 3 # estimated aircon + Sensibo
- entity_id: switch.dining_room_aircon
fixed:
power: >
{% from 'custom_templates.jinja' import aircon_power %}
{{ aircon_power('dining_room') }}
standby_power: 2 # estimated aircon
- entity_id: switch.bedroom_aircon
fixed:
power: >
{% from 'custom_templates.jinja' import aircon_power %}
{{ aircon_power('bedroom') }}
standby_power: 3 # estimated aircon + Sensibo
- entity_id: fan.bedroom
name: Bedroom fan
linear:
calibrate: # values from: https://hunterpacificinternational.com.au/downloads/datasheets/EvolveECDC_132cm.pdf
- 11 -> 3.6
- 22 -> 4.8
- 33 -> 10.1
- 44 -> 12.9
- 55 -> 15.9
- 66 -> 18.6
- 77 -> 21.6
- 88 -> 23.8
- 100 -> 26.2
standby_power: 0.25 # estimate (equal split between fan and light)
- entity_id: fan.nursery
name: Nursery fan
linear:
calibrate: # values from: https://hunterpacificinternational.com.au/downloads/datasheets/EvolveECDC_122cm.pdf
- 11 -> 3.5
- 22 -> 4.7
- 33 -> 9.8
- 44 -> 12.3
- 55 -> 15.4
- 66 -> 18.2
- 77 -> 21.1
- 88 -> 23.5
- 100 -> 26.1
standby_power: 0.25 # estimate (equal split between fan and light)
- entity_id: fan.office
name: Office fan
linear:
calibrate: # values from: https://hunterpacificinternational.com.au/downloads/datasheets/EvolveECDC_122cm.pdf
- 11 -> 3.5
- 22 -> 4.7
- 33 -> 9.8
- 44 -> 12.3
- 55 -> 15.4
- 66 -> 18.2
- 77 -> 21.1
- 88 -> 23.5
- 100 -> 26.1
standby_power: 0.25 # estimate (equal split between fan and light)
- entity_id: switch.office_heater
power_sensor_id: sensor.office_heater_power
ignore_unavailable_state: true
- entity_id: switch.nursery_heater
power_sensor_id: sensor.nursery_heater_power
- entity_id: humidifier.bedroom
name: Bedroom humidifier
fixed: # measured with a smart switch
power: >
{{
26 if state_attr('humidifier.bedroom', 'humidity')|float(0) > state_attr('humidifier.bedroom', 'current_humidity')|float(0) else 15.6
+ 3 if states('light.bedroom_humidifier') == 'on' else 0
}}
standby_power: 0.5 # estimate
- entity_id: humidifier.nursery
name: Nursery humidifier
fixed: # measured with a smart switch
power: >
{{
26 if state_attr('humidifier.nursery', 'humidity')|float(0) > state_attr('humidifier.nursery', 'current_humidity')|float(0) else 15.6
+ 3 if states('light.nursery_humidifier') == 'on' else 0
}}
standby_power: 0.5 # estimate
- create_group: Entryway lights
hide_members: true
entities:
- entity_id: light.entryway
linear:
min_power: 0.7 # estimate
max_power: 7 # from https://www.wizconnected.com/en-au/p/filament-bulb-filament-globe-amber-50w-g95-e27/8718699786793
standby_power: 0.3 # estimate based on similar lights: https://library.powercalc.nl/
- entity_id: light.stairway
linear:
min_power: 0.49 # estimate
max_power: 4.9 # from https://www.wizconnected.com/en-au/p/filament-bulb-filament-candle-amber-25w-c35-e14/8718699787257
standby_power: 0.3 # estimate based on similar lights: https://library.powercalc.nl/
- entity_id: light.kitchen
name: Kitchen light
linear:
min_power: 0.7 # estimate
max_power: 7 # from https://www.wizconnected.com/en-au/p/filament-bulb-filament-globe-amber-50w-g95-e27/8718699786793
standby_power: 0.3 # estimate based on similar lights: https://library.powercalc.nl/
- entity_id: light.kitchen_strip
name: Kitchen strip light
linear:
min_power: 2 # estimate
max_power: 20 # from https://www.kogan.com/au/buy/kogan-smarterhometm-ip68-colour-whites-smart-led-light-strip-5m-kogan/
standby_power: 0.3 # estimate
- entity_id: light.tv_middle
name: TV lights
linear:
min_power: 0.7 # estimate
max_power: 7 # from https://www.wizconnected.com/en-au/p/filament-bulb-filament-globe-amber-50w-g95-e27/8718699786793
standby_power: 0.3 # estimate based on similar lights: https://library.powercalc.nl/
multiply_factor: 3
multiply_factor_standby: true
- entity_id: light.dining_room_left
name: Dining room lights
linear:
min_power: 0.7 # estimate
max_power: 7 # from https://www.wizconnected.com/en-au/p/filament-bulb-filament-globe-amber-50w-g95-e27/8718699786793
standby_power: 0.3 # estimate based on similar lights: https://library.powercalc.nl/
multiply_factor: 2
multiply_factor_standby: true
- entity_id: light.hall
name: Hall light
linear:
min_power: 0.7 # estimate
max_power: 7 # from https://www.wizconnected.com/en-au/p/filament-bulb-filament-globe-amber-50w-g95-e27/8718699786793
standby_power: 0.3 # estimate based on similar lights: https://library.powercalc.nl/
- entity_id: light.bathroom
name: Bathroom light
linear:
min_power: 0.7 # estimate
max_power: 7 # from https://www.wizconnected.com/en-au/p/filament-bulb-filament-globe-amber-50w-g95-e27/8718699786793
standby_power: 0.3 # estimate based on similar lights: https://library.powercalc.nl/
- entity_id: light.bedroom
name: Bedroom light
linear:
min_power: 2 # estimate
max_power: 18 # from https://hunterpacificinternational.com.au/downloads/datasheets/EvolveECDC_132cm.pdf
standby_power: 0.25 # estimate (equal split between fan and light)
- entity_id: light.office
name: Office light
linear:
min_power: 2 # estimate
max_power: 18 # from https://hunterpacificinternational.com.au/downloads/datasheets/EvolveECDC_122cm.pdf
standby_power: 0.25 # estimate (equal split between fan and light)
- entity_id: light.nursery
name: Nursery light
linear:
min_power: 2 # estimate
max_power: 18 # from https://hunterpacificinternational.com.au/downloads/datasheets/EvolveECDC_122cm.pdf
standby_power: 0.25 # estimate (equal split between fan and light)
- create_group: TV, speakers, PC, Home Assistant, router relay, security hub
entities:
- entity_id: switch.tv_pc_home_assistant_router_relay_security_hub
power_sensor_id: sensor.tv_pc_home_assistant_router_relay_security_hub_power
ignore_unavailable_state: true
- entity_id: sensor.dummy
name: TV subwoofer and rear speakers
fixed:
power: >
{%-
set volume = state_attr('media_player.tv_speakers', 'volume_level')|float(0)
if not state_attr('media_player.tv_speakers', 'is_volume_muted')|default(False) else 0
-%}
{%- if state_attr('media_player.tv', 'sound_output')|default == "external_arc" -%}
{{- 12 + 4 * volume * (1 + 6 * volume) if states('sensor.webostvservice_play_state') == "on" else 12 -}}
{%-
elif state_attr('media_player.tv_speakers', 'source')|default == "Bluetooth" and
'24:E8:53:AB:AC:DF (LG_Speaker_SP11RA_2463)' in
state_attr('sensor.rachel_s_phone_bluetooth_connection', 'connected_paired_devices')|default and
states('binary_sensor.rachel_s_phone_music_active') == "on"
-%}
{{- 12 + 4 * volume * (1 + 6 * volume) -}}
{%- else -%}
2
{%- endif -%}
# formula derived from the following measurements made with a smart switch
# ≈4W * 3 when on @ 0% volume
# ≈10W subwoofer, ≈5W * 2 rear @ 50% volume
# ≈20W subwoofer, ≈10W * 2 rear @ 100% volume
# standby from https://www.lg.com/uk/speakers/soundbars/sp11ra/?srsltid=AfmBOopZ7O31FooCpPHhw462bAGGP_GJ9nZR9T5n9rWonUcFKXETGE2i
- entity_id: switch.dishwasher
power_sensor_id: sensor.dishwasher_power
ignore_unavailable_state: true
- entity_id: switch.fridge
power_sensor_id: sensor.fridge_power
ignore_unavailable_state: true
- entity_id: switch.freezer_mini_fridge_routers
power_sensor_id: sensor.freezer_mini_fridge_routers_power
ignore_unavailable_state: true
- create_group: Kitchen appliances
entities:
- entity_id: switch.microwave
power_sensor_id: sensor.microwave_power
ignore_unavailable_state: true
- entity_id: switch.toaster_blender
power_sensor_id: sensor.toaster_blender_power
ignore_unavailable_state: true
- entity_id: switch.kettle_milk_frother
power_sensor_id: sensor.kettle_milk_frother_power
ignore_unavailable_state: true
- entity_id: switch.kitchen_switch
power_sensor_id: sensor.kitchen_switch_power
ignore_unavailable_state: true
- power_sensor_id: sensor.washer_power
energy_sensor_id: sensor.washer_energy
- power_sensor_id: sensor.dryer_power
energy_sensor_id: sensor.dryer_energy
- create_group: Office desk, computer & monitor, cooler, fish tank
entities:
- entity_id: switch.office_desk
power_sensor_id: sensor.office_desk_power
ignore_unavailable_state: true
- entity_id: binary_sensor.desk_occupied_and_computer_active
name: Office computer monitor
fixed: # measured average with a smart switch
power: 80
standby_power: 0.2
- entity_id: sensor.dummy
name: Fish tank
fixed: # measured average with a smart switch
power: "{{ 4 if today_at('10:00') < now() < today_at('17:00') else 2 }}"
- create_group: Phone chargers
entities:
- power_sensor_id: sensor.dan_s_phone_charger_power
energy_sensor_id: sensor.dan_s_phone_charger_energy
- entity_id: device_tracker.rachel_s_phone
name: Rachel's phone charger
fixed:
power: 0
states_power: # assumes 1.2W input per 1W charge
home: "{{ max(0, 1.2 * states('sensor.rachel_s_phone_battery_power')|float(0)) }}"
- entity_id: device_tracker.rachel_s_tablet
name: Rachel's tablet charger
fixed:
power: 0
states_power: # assumes 1.2W input per 1W charge
home: "{{ max(0, 1.2 * states('sensor.rachel_s_tablet_battery_power')|float(0)) }}"
- create_group: Sensors
entities:
- name: Motion sensors
daily_fixed_energy:
value: 0.025 # 3x, from https://r0.hlktech.com/download/HLK-LD1125F-24G/1/HLK-LD1125F-24G%E7%94%A8%E6%88%B7%E4%BD%BF%E7%94%A8%E6%89%8B%E5%86%8CV1.0.pdf
- name: Security cameras
daily_fixed_energy:
value: 0.072 # 2x, from https://www.reddit.com/r/EufyCam/comments/h8o4c5/indoor_cam_2k_power_consumption/
- name: Weather stations
daily_fixed_energy:
value: 0.072 # estimate
- name: Nursery egg temperature light
daily_fixed_energy:
value: 0.048 # estimate
- entity_id: switch.paludarium_picture_frame_camera
name: Paludarium, picture frame, camera
power_sensor_id: sensor.paludarium_picture_frame_camera_power
ignore_unavailable_state: true
- entity_id: sensor.dummy
name: Water heater, oven & stove, guest suite, garage, all other
fixed:
power: "{{ max(0, states('sensor.power_meter_power_load_consumed')|float(0) - states('sensor.tracked_power')|float(0)) }}"
sensor:
- platform: derivative
name: Washer power
source: sensor.washer_energy
unit: kW
time_window: 00:15:00
- platform: derivative
name: Dryer power
source: sensor.dryer_energy
unit: kW
time_window: 00:15:00
- platform: derivative
name: Dan's phone charger power
source: sensor.dan_s_phone_charger_energy
unit: kW
time_window: 00:15:00
homeassistant:
customize:
sensor.dan_s_phone_charger_power:
unit_of_measurement: kW
device_class: power
state_class: measurement