mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
1b6d90d399
* 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> |
||
---|---|---|
.. | ||
__init__.py | ||
binary_light_with_power.cpp | ||
binary_light_with_power.h | ||
light.py | ||
README.md |
Binary Light With Power Component
Overview
This an enhanced version of the standard binary light component that adds an option to include a sensor to report current power usage based on a configured wattage of the light(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: [ binary_light_with_power ]
Like the standard binary light component you need to have an output.
output:
- platform: gpio
id: my_light_output
pin: 13
Add and configure the Binary Light With Power Component
light:
- platform: binary_light_with_power
id: my_light
name: My Light
output: my_light_output
power:
id: my_light_power
name: My Light Power
light_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.light_wattage (Optional, float) The total wattage of the light(s) controled by this dimmer
- power.update_interval (Optional, Time, default: 60s) Amount of time between updates of the power value while on.