This is a fork of esphome-livingcolors1 by @rrooggiieerr. I modified the code so the command is sent twice each time, that was necessary in my case.
Philips LivingColors 1st generation component for ESPHome.
To set up this LivingColors component you first need to place a top-level SPI and CC2500 component which defines the pins to use.
- ESP8266 or ESP32
- CC2500 transceiver
These need to be wired as described on the ESPHome CC2500 component
- Install and Run Phil's Philips Living Colors (Gen 1) mit NodeMCU (ESP8266) + CC2500 steuern after fixing the code by returning a bool value at the end of the addLamp() function.
- Keep the serial monitor on and press a button on your remote.
- Look at the output after "Vorhandene Adressen im Speicher:", this lists the address(es) of your lights in decimal format.
- Convert the decimal output to hex
- Make sure each digit is converted to 2 hex characters (See rrooggiieerr#2 (comment))
- Remove the spaces and prefix the 16 character hex string with a 0x
esphome:
name: livingcolors1
external_components:
- source:
type: git
url: https://github.com/rrooggiieerr/esphome-cc2500
ref: 0.0.2
components: [cc2500]
- source:
type: git
url: https://github.com/bn326160/esphome-livingcolors1
ref: 0.0.3
components: [livingcolors1]
esp8266:
board: nodemcu
# Enable logging
logger:
level: DEBUG
spi:
clk_pin: GPIO14
mosi_pin: GPIO13
miso_pin: GPIO12
cc2500:
cs_pin: GPIO15
output_power: 0xFF
livingcolors1:
light:
- platform: livingcolors1
name: "LivingColors One"
address: 0x...
#- platform: livingcolors1
# name: "LivingColors Two"
# address: 0x...
wifi:
ssid: ""
password: ""
api:
password: ""
web_server:
port: 80
version: 3
- Phil's Philips Living Colors (Gen 1) mit NodeMCU (ESP8266) + CC2500 steuern was helpful for making this component.
- @rrooggiieerr's Philips LivingColors 1st generation component for ESPHome by @rrooggiieerr