Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quinled + HASS + 2 strips = only on/off switch #1222

Closed
zen opened this issue Sep 22, 2018 · 6 comments
Closed

Quinled + HASS + 2 strips = only on/off switch #1222

zen opened this issue Sep 22, 2018 · 6 comments
Labels
Milestone

Comments

@zen
Copy link

zen commented Sep 22, 2018

Hi,
I'm using 2 channel LED controller (Quinled) and with HASS autodiscovery it acts as a switch, only allowing to switch on / off both channels. Is there any way control it separately in HASS?

@xoseperez
Copy link
Owner

Mmm... there is no support for non-RGB lights in the homeassistant module. Fail.
A partial workaround would be to set the DUMMY_RELAY_COUNT to 2, this way it will create a switch for each channel. You will only be able to switch them on or off but separately.

@xoseperez xoseperez added the enhancement New feature or request label Sep 23, 2018
@xoseperez xoseperez added this to the 1.14.0 milestone Sep 23, 2018
@zen
Copy link
Author

zen commented Sep 25, 2018

So, my temp workaround is not to use main switch, and use channels through a trick in HASS:

  • platform: mqtt
    name: "Kitchen 1"
    command_topic: "K-LEDS/channel/0/set"
    payload_off: "OFF"
    brightness_command_topic: "K-LEDS/channel/0/set"
    brightness_state_topic: "K-LEDS/channel/0"
    on_command_type: "brightness"
    #availability_topic: "K-LEDS/status"
    #payload_available: "1"
    #payload_not_available: "0"

  • platform: mqtt
    name: "Kitchen 2"
    command_topic: "K-LEDS/channel/1/set"
    payload_off: "OFF"
    brightness_command_topic: "K-LEDS/channel/1/set"
    brightness_state_topic: "K-LEDS/channel/1"
    on_command_type: "brightness"
    #availability_topic: "K-LEDS/status"
    #payload_available: "1"
    #payload_not_available: "0"

Let's see how it works

@peekayv
Copy link

peekayv commented Nov 16, 2018

Any updates ?
Below is my configuration of seperate dimmer-channels on Quin, however switch is still common - turning one off / on, turns also the other one.
You could also use channel topic to turn it off, as you described, but then turning it on again would reset brightness level.
Did you succeed with DUMMY_RELAY_COUNT ?

  - platform: mqtt
    name: 'salon_tv'
    friendly_name: 'Swiatlo Salon TV'
    state_topic: 'ESP_SALON/relay/0'
    command_topic: 'ESP_SALON/relay/0/set'
    brightness: true
    brightness_scale: 255
    brightness_command_topic:  'ESP_SALON/channel/0/set'
    brightness_state_topic: 'ESP_SALON/channel/0'
    payload_on: 1
    payload_off: 0
  - platform: mqtt
    name: 'salon_dining'
    friendly_name: 'Swiatlo Salon Jadalnia'
    state_topic: 'ESP_SALON/relay/0'
    command_topic: 'ESP_SALON/relay/0/set'
    brightness: true
    brightness_scale: 255
    brightness_command_topic:  'ESP_SALON/channel/1/set'
    brightness_state_topic: 'ESP_SALON/channel/1'
    payload_on: 1
    payload_off: 0

@zen
Copy link
Author

zen commented Nov 17, 2018

I didn't try with this option to be honest, I'm just not using switch and emulation on/off with brightness

@tarbax
Copy link

tarbax commented Nov 25, 2018

i also struggeling with this cause if i command google to turn on the light, it is turns on both channels.
it would be great if this is going to be added so there is a switch for each channel.

@zen
Copy link
Author

zen commented Nov 25, 2018

Yes, that's right. Alexa integration is also useless without it

@mcspr mcspr closed this as completed Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants