ESPHome-Devices/components/treo_led_pool_light
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 Refactor the TREO Light code as a component (#19) 2021-08-18 21:58:32 -05:00
light.py A bunch of misc changes (#32) 2022-03-29 13:54:34 -05:00
README.md Refactor the TREO Light code as a component (#19) 2021-08-18 21:58:32 -05:00
treo_led_pool_light.cpp ESPHome version 2021.10.x updates (#30) 2021-11-11 12:46:56 -06:00
treo_led_pool_light.h Refactor the TREO Light code as a component (#19) 2021-08-18 21:58:32 -05:00

TREO LED Pool Light Component

Overview

This is a custom light component that works with TREO LED Pool Lights and exposes the different colors as "effects" so thay can be selected from Home Assistant. It also has 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: [ treo_led_pool_light ]

Add and configure the Binary Light With Power Component

light:
  - platform: treo_led_pool_light
    id: my_pool_lights
    name: My Pool Lights
    pin: 15
    power:
      id: my_pool_lights_power
      name: My Pool Lights Power
      light_wattage: 10.0
      update_interval: 60s

Configuration Variables (In addition to the standard variables)

  • pin (Required, Pin) The output pin that controls power to the lights
  • 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.

Operation

It is possible for the color of the lights to get out of sync with each other and/or this component. To resolve this issue this component adds a service named esphome.{device_name}_color_sync_reset that goes through the series of power cycles defined in the lights user guide that will reset all lights and this component back to the slow color change "effect".