LWRF mood switch presses

Posted on
Sun Apr 12, 2015 4:55 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

LWRF mood switch presses

I'm struggling with my LWRF mood switch.

Any time I unplug and replug the USB lead, the next button I press is received and processed by Indigo; the problem is no further presses are received until I unplug and replug.

Any ideas?

Posted on
Mon Apr 13, 2015 12:19 am
b_weijenberg offline
Posts: 172
Joined: Jun 14, 2006

Re: LWRF mood switch presses

The RFXtrx does not process the same commands received within a short time.
If you press the same command on the remote you have to wait a few seconds between each button press.

Posted on
Mon Apr 13, 2015 12:21 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: LWRF mood switch presses

Unfortunately I get the same overnight though? I usually only operate it once per evening.

Posted on
Mon Apr 13, 2015 1:52 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: LWRF mood switch presses

I am not sure I fully understand what the problem is :?
howartp wrote:
Any time I unplug and replug the USB lead
Do you mean unplug the RFXtrx?

Have you tried turning debugging on to see what happens when you unplug and replug and then press the buttons.

It might give a clue as to what is going on. If you can clarify the steps you are taking then I could try the same with my setup to see what happens, if that would help? :)

Posted on
Mon Apr 13, 2015 6:14 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

LWRF mood switch presses

Sorry, the problem is - I can only ever issue one button press from the mood switch.

So I go to bed late evening, I press the 'bedtime' mood button when I enter the bedroom. That works. I get up the following morning and press the "I'm awake" mood button - that doesn't work. Nor does any other button press from now until eternity - the mood switch is essentially dead.

I go to the Mac, unplug and replug the RftTrx thingy. Now I go and watch TV in my room and press the 'TV' mood button - which works. I then go to bed and press the 'Bedtime' mood button. This doesn't work.

Etc

?

Posted on
Mon Apr 13, 2015 6:18 am
b_weijenberg offline
Posts: 172
Joined: Jun 14, 2006

Re: LWRF mood switch presses

This must be something in the plug-in. Please contact the plug-in developer.

Posted on
Mon Apr 13, 2015 8:00 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: LWRF mood switch presses

b_weijenberg wrote:
This must be something in the plug-in. Please contact the plug-in developer.

Which is why I'm in the third-party plugins forum, in the RFXCOM subforum...?

Posted on
Mon Apr 13, 2015 8:20 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: LWRF mood switch presses

Take a look at this post - I think it may possibly resolve your problem? :)

Posted on
Mon Apr 13, 2015 10:41 am
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: LWRF mood switch presses

I thought b_weijenberg was the plugin dev, clearly I'm totally not paying attention!

So how have you got your triggers setup for the mood switches?

Computer says no.

Posted on
Mon Apr 13, 2015 11:05 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: LWRF mood switch presses

My issue isn't with triggering or detecting the same state - I'm using the method Berkinet/Durisity posted - but that only works if the Last Updated value changes on the device state. In other words, if the plugin is correctly receiving and processing button presses.

THAT is what isn't happening - I'm pressing buttons, but the device state itself is never changing, except for the first button I ever press after replugging the USB lead to the RfxTrx thingy.

-------

However, I am talking a load of rubbish as usual.

I've just manually toggled bedroom fan so I could track my position in the log, unplugged and replugged the USB lead, toggled the fan, then step by step pressed buttons 1-6, sixty seconds apart, with a fan toggle in between. And every single button was received and registered correctly.

GRRRRRR!

Posted on
Mon Apr 13, 2015 11:11 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: LWRF mood switch presses

Here goes: :)
Code: Select all
First Trigger (Turn On) -
Trigger: Device State Changed > LWRF Mood Switch Device Name > Last Updated > Has Any Change
Condition: If All rules are true -
    if device > LWRF Mood Switch Device Name > Command > is equal to > Mood 5
    if device > Controlled Device Name > On/Off State > is off
Action:
    Turn On > Controlled Device Name (actually I am setting it to a particular brightness level)

Second Trigger (Turn Off) -
Trigger: Device State Changed > LWRF Mood Switch Device Name > Last Updated > Has Any Change
Condition: If All rules are true -
    if device > LWRF Mood Switch Device Name > Command > is equal to > Mood 5
    if device > Controlled Device Name > On/Off State > is on
Action:
    Turn Off > Controlled Device Name
So that is how to do separate triggers for on/off, or you can do this:

Code: Select all
Trigger: Device State Changed > LWRF Mood Switch Device Name > Last Updated > Has Any Change
Condition: If Any rules are true -
    if device > LWRF Mood Switch Device Name > Command > is equal to > Mood 5
Action:
    Toggle On/Off > Controlled Device Name
So for each trigger you set-up you need to check for the particular mood switch you want to respond to, list of values to check plus button they relate to are:
  • Top left = Mood 4
  • Top Right = Mood 5
  • Bottom Left = Group off
  • bottom Inside Left = Mood 1
  • bottom Inside Right = Mood 2
  • Bottom Right = Mood 3
Note that case is important when checking the values :wink:

Hope this helps :)

Posted on
Mon Apr 13, 2015 11:13 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: LWRF mood switch presses

Have you tried turning on debug to see what happens when you press the buttons?

Posted on
Mon Apr 13, 2015 11:28 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: LWRF mood switch presses

I think I've found the root cause - I'm right on the edge of coverage where the switch is located.

When I was testing earlier, I moved the switch less than 3m from its fixed point, to where I could sit down and more easily monitor Indigo - this happens to be 3m nearer the RfxTrx and also the other side of our residential faraday cage (otherwise known as a towel rail).

As soon as I remount it, it stops working again - ie Indigo no longer sees button presses.

I've temporarily restrung the USB lead to get the RfxTrx about 2m nearer the switch and it seems to be happily receiving button presses again. I'll keep an eye on it.

Posted on
Mon Apr 13, 2015 11:30 am
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: LWRF mood switch presses

howartp wrote:
GRRRRRR!


It's exactly this kind of intermittent behaviour that made me drop using the LWRF master switches.. i don't blame them completely, but they're the only part of my setup that isn't 100% reliable.. hence a pile of them sitting waiting to be ebayed :)

Computer says no.

Posted on
Mon Apr 13, 2015 11:32 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: LWRF mood switch presses

What colour?

Who is online

Users browsing this forum: No registered users and 12 guests