wanno-drijfhout / 10homelab

The "10homelab" project configures a home server, sufficiently secure and maintainable for personal use.
https://wanno-drijfhout.github.io/10homelab
2 stars 0 forks source link

Add virtual energy consumption in Home Assistant #38

Open wanno-drijfhout opened 3 years ago

wanno-drijfhout commented 3 years ago

Install and configure https://github.com/bramstroker/homeassistant-powercalc

wanno-drijfhout commented 3 years ago

Example:

  - platform: powercalc
    entity_id: light.werkkamer_bureau_rechterlamp
    linear:
      min_power: 0.5
      max_power: 8.9
  - platform: powercalc
    entity_id: media_player.romulus
    fixed:
      states_power:
        playing: 6.0
        paused: 4.5
        idle: 3.8
  - platform: powercalc
    entity_id: media_player.theodosius
    fixed:
      power: 130
    standby_usage: 0.3