Hi Community,
OK, I am just starting with getting into HASS.IO. I got into this because I would like to get into more home control and automation.
Right now, it’s just control. Later, automation…
Here is my project. I want to put ambient exterior lighting using LEDs on the exterior of my house. I plan on installing these under my eves, for both security and ambience. Sick example…
I am very versed on the HW and electrical aspect of all this. I have had a job in technology for the past 20 years but I’ve never seemed to pick up development. I’ve dabbled in it but just enough to be dangerous. LOL.
Bruh_Automation has some really great examples and I’ve been pouring over all the code samples.
Here is one thread that has been very helpful to me:
Here is where I am at:
R-pi3 running latest version of HASS.IO – 0.61.1
HiLetgo ESP8266 NodeMCU LUA CP2102 ESP-12E – loaded with Bruh LED sample code and connected to network
Visdoll 16.4Ft WS2812B 300Leds RGB Pixel Strip Lights, 60 Pixel/m WS2811
ALITOVE 5V 60A 300W Power Supply Transformer Adapter Converter
Used touliloup’s example and created a separate “Packages” directory and included “packages: !include_dir_named packages” under the homeassistant: section in the configuration.yaml
Underpackages, I’ve included a separate: exteriorleds.yaml which has:
light:
- platform: mqtt_json
name: "House Top Eve"
state_topic: "rasperry/topeve"
command_topic: "rasperry/topeve/set"
effect: true
effect_list:
- bpm
- candy cane
- confetti
- cyclon rainbow
- dots
- fire
- glitter
- juggle
- lightning
- noise
- police all
- police one
- rainbow
- rainbow with glitter
- ripple
- sinelon
- solid
- twinkle
brightness: true
flash: true
rgb: true
optimistic: false
qos: 0
input_number:
animation_speed:
name: Top Eve Animation Speed
initial: 150
min: 1
max: 150
step: 10
strip_brightness:
name: Brightness
icon: mdi:brightness-7
initial: 150
min: 1
max: 150
step: 10
When I start HASS.IO, log into the HA webpage and check the “Configuration” → “General” → “Configuration Validation button” it gives me a valid configuration.
Here is the issue.
When I include the automations section of those samples in the community help linked above, I get a ton of configuration errors.
On the main home page of the HA webpage is states:
So, I go back to the “Configuration Validation Button” and it says:
I cut and paste the code and made just a few changes to the alias and topics.
automation:
- alias: "Top Eve Animation Speed"
initial_state: True
hide_entity: False
trigger:
- platform: state
entity_id: input_number.animation_speed
action:
- service: mqtt.publish
data_template:
topic: "rasperry/topeve/set"
payload: '{"transition":{{ trigger.to_state.state | int }}}'
Here is the kicker… I also loaded Configurator: The browser-based configuration file editor for Home Assistant.
It’s telling me that the YAML looks good?
Questions:
- I am assuming that I need the automation to actually publish changes that I make in the animation speed and brightness to the ESP8266?
- What is wrong with the automation configuration?
Any help with the configuration would be greatly appreciated!!!
Sincere thanks.
-W
Edited for code blocks