bruhautomation / ESP-MQTT-JSON-Digital-LEDs

(OBSOLETE) ESP8266 MQTT JSON Digital LEDs for Home Assistant
https://youtu.be/9KI36GTgwuQ
Apache License 2.0
513 stars 267 forks source link

mqtt light: #44

Open AAli77 opened 7 years ago

AAli77 commented 7 years ago

Hello BRUH:

I got this project working, but I had only one concern that would be very easy but I am unable to fix it. I am trying to add 2 RGB lights but somehow on my home assistant it is only showing the last Example light:

Can you/anyone please assistant me what I am doing wrong.

I had compile the code no error, home assistant load perfectly but LED Switch is showing only for BackYard.

thanks

AA

TheJulianJES commented 7 years ago

I think you would need something like this:

- platform: mqtt_json
  name: "FrontYard"
  state_topic: "FY/porch"
  command_topic: "FY/porch/set"
  effect: true
  brightness: true
  flash: true
  rgb: true
  optimistic: false
  qos: 0

- platform: mqtt_json
  name: "BackYard"
  state_topic: "BY/porch"
  command_topic: "BY/porch/set"
  effect: true
  brightness: true
  flash: true
  rgb: true
  optimistic: false
  qos: 0