Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

Lights don't work #61

Open
Osprey37 opened this issue Nov 15, 2017 · 3 comments
Open

Lights don't work #61

Osprey37 opened this issue Nov 15, 2017 · 3 comments

Comments

@Osprey37
Copy link

Total newbie here so forgive me for asking stupid questions. I've tried to follow each step in the process and after getting everything installed on my pi and updating my Homeassistant yaml file and uploading the sketch to my board nothing happens. Homeassistant is showing the light card, the input card and the automation card but when I turn on the light nothing happens. Not sure if it's a communication issue with the ESP, or an MQTT issue or what. Is there a way to serially monitor what homeassistant is sending out and if it's communicating with the ESP? Totally stuck. Thanks for any help or guidance.

@Philje123
Copy link

Can you check the MQTT log to see if it is connecting to the MQTT broker?

If it is then it's likely to be a topic related issue.

Did you make sure to set the topic etc in the code?

It's taken me a while to get my head round how MQTT works.

In my code I have:

const char* light_state_topic = "bed/lights";
const char* light_set_topic = "bed/lights/set";

Which translates to my Home Assistant light config as:

  • platform: mqtt_json
    name: "Headboard LEDs"
    state_topic: "bed/lights"
    command_topic: "bed/lights/set"

@ThAnKm3Lat3R
Copy link

I had this same issue. Turned out my light strip was bad.
Maybe try ordering this and see if your light strip is good.
https://www.amazon.com/gp/product/B01DC0JKGY/ref=oh_aui_detailpage_o01_s01?ie=UTF8&psc=1

@federom
Copy link

federom commented Jun 4, 2018

If you open the serial monitor in the Arduino IDE, when you send requests from HA, you will see the activity.
Check if the DATA_PIN used is correct

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants