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

[Loxone] LightControllerV2: Can't switch off with rule / Alexa #10

Open
danielm0hr opened this issue Dec 8, 2018 · 1 comment
Open

Comments

@danielm0hr
Copy link

danielm0hr commented Dec 8, 2018

Hi,

My goal is to be able to select individual lighting moods of a Loxone LightControllerV2 through Alexa, without mixing them in. The channels created for the individual moods always mix them, thus when switching to moods with fewer outputs on, I always have to say: "Alexa, Mood A off. Alexa Mood B on". This is not convenient at all. I only want to say "Alexa, Mood B on" and it should switch the A-only-outputs off.

To work around this I tried creating virtual switches for the individual moods and setting the appropriate ID in the light controller Number item through rules, when the switch is toggled. This works fine (no mixing), except I'm not able to switch off all outputs in a rule. It seems like, there's no ID assigned to the "Off" mood, or at least I couldn't figure out which.

This is my LightController item:
Number Lichtsteuerung_Wohnzimmer "Lichtsteuerung Wohnzimmer" <light> ["Lighting"] {channel="loxone:miniserver:ac681435:126F495A-0184-E9BE-FFFFB6D057327F6C"}

It shows up in Paper UI as a dropdown with the available moods, even including the "Off" mood. Through Paper UI everything is fine, also switching off all lights by selecting the "Off" mood.

However, in the following rule, I didn't find the appropriate value for the "Off" mood, yet (marked with ???). Licht_Wohnzimmer_Standard is the virtual switch.

rule "Licht Wohnzimmer Standard"
when
    Item Licht_Wohnzimmer_Standard received update
then
    if (Licht_Wohnzimmer_Standard.state == ON) {
        sendCommand(Lichtsteuerung_Wohnzimmer, 2)
    }
    if (Licht_Wohnzimmer_Standard.state == OFF) {
        sendCommand(Lichtsteuerung_Wohnzimmer, ???)
    }
end

Is there a better approach for selecting individual moods without mixing them? And if not, how to switch the LightControllerV2 off through a rule?

Thanks!

@ppieczul
Copy link
Owner

ppieczul commented Dec 9, 2018 via email

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

No branches or pull requests

2 participants