Becasue I want to use the tag reader to disarm my alarm I like to add a led to represent the status of the alarm. (Red is on, Green is off).
It would be great if somebody could help me with this. I see 2 main activities which needs to be done
Connect a LED to the existing ESP board ( ESP8266 D1 Mini) Can I use a LED which van have to colors or do I need 2 different LED and how can I connect the LED’s to the board (which pin’s)
Which code do I need to add to the current TAGreader.yaml to set the color of the LED(s) based on the HA status of the alarm?
Can you be a little bit more specific? Suppose I use the same rgb led on which pin should it be connected?
And how can I get the alarm status into the code?
I do this with my alarm. I setup light effects on the tag readers light componet. A flash red for alarm arming or pending, a quick green flash for disarmed, and i just set it to yellow if the alarm was triggered recently. Home assistant sets these effects though automations.
Check out the github page for adonno’s tag reader and the effect section of the light component
You’ll have to create your own effect and add it to the light componet. with one led they will be pretty simple, there are examples you can modify to suit your needs. Then automations the esphome yaml or homeassistant call the light effect as needed.