ESPHome-Devices/components/gpio_switch_with_power
Chris Nussbaum 1b6d90d399
A bunch of misc changes (#32)
* Temporarily disable the heater

* Shell of new garage fridge component

* Core code should be mostly complete

* Add power monitoring and freezer temp control

* Wrap up core temperature management code

* Add fixed InkBird component

* The new fridge manages temp in the freezer better so we are able to greatly simplify things

* Finish garage fridge

* Misc changes

Co-authored-by: Chris Nussbaum <chris.nussbaum@protolabs.com>
2022-03-29 13:54:34 -05:00
..
__init__.py Energy monitoring fixes (#17) 2021-08-17 21:55:21 -05:00
gpio_switch_with_power.cpp Energy monitoring fixes (#17) 2021-08-17 21:55:21 -05:00
gpio_switch_with_power.h A bunch of misc changes (#32) 2022-03-29 13:54:34 -05:00
README.md Energy monitoring fixes (#17) 2021-08-17 21:55:21 -05:00
switch.py A bunch of misc changes (#32) 2022-03-29 13:54:34 -05:00

GPIO Switch With Power Component

Overview

This an enhanced version of the standard gpio switch component that adds an option to include a sensor to report current power usage based on a configured wattage of the device(s) it controls.

Setup

Using the External Components feature in ESPHome you can add this component to your devices directly from my GitHub repo.

external_components:
  - source: github://nuttytree/esphome
    components: [ gpio_switch_with_power ]

Add and configure the GPIO Switch With Power Component

switch:
  - platform: gpio_switch_with_power
    id: my_switch
    name: My Switch
    pin: 4
    power:
      id: my_switch_power
      name: My Switch Power
      device_wattage: 48.0
      update_interval: 60s

Configuration Variables (In addition to the standard variables)

  • power.id (Optional, string) Manually specify the power sensor ID used for code generation.
  • power.name (Optional, string) The name for the power sensor
  • power.device_wattage (Optional, float) The total wattage of the device(s) controled by this dimmer
  • power.update_interval (Optional, Time, default: 60s) Amount of time between updates of the power value while on.