Page 1 of 1
Toggle function RFXCom / Nexa
Posted: Tue Nov 08, 2011 10:20 am
by ReWind
Hi,
I was wondering if someone had the answer to my problem.
As part of an alarm/domotica system I'm currently installing in our family cabin, we've custom made a keyswitch connected to a hidden Nexa wallswitch.
The problem with this keyswitch is that it only goes one way, so it only sends the "On" signal. I can pick that up fine through our RFXCom, so the electronics
work adequately. However, I'm having some trouble defining a trigger in DomotiGa which will fire when the switch is never turned off.
I tried setting it switchable so that I could set the event to toggle it to "Off", but as it is set up on the RFXCom receiver I only get an error message stating
that the interface does not allow write.
Maybe this should be hooked up somehow to the "last seen" field?
Thank you in advance,
Preben
Re: Toggle function RFXCom / Nexa
Posted: Wed Nov 09, 2011 1:23 pm
by RDNZL
As far as I know you simply create a trigger on your Nexa device field lastseen <> " " (space)
And it will trigger the event if the device is updated even if the value stays the same.
Can you try this and reply with result?
Maybe you have to set the event not to trigger on every packet, since most of the devices send more packets on a push.
Re: Toggle function RFXCom / Nexa
Posted: Wed Nov 09, 2011 2:45 pm
by j.hoekstra
Don't want to hijack this thread but I _had_ a similar problem with an X10 screw-in module, an Home Easy switch and domotiga, with the tip of Ron I was able to make it work smarter.
I've made a trigger on the HE-switch as described above, made a condition which checks if Dev_numberofdevice_Value = "On" and then an action to change the value of the X10-device.
To switch it off only the condition and action need to be changed to switch the X10-device off.
Re: Toggle function RFXCom / Nexa
Posted: Wed Nov 09, 2011 9:58 pm
by ReWind
Thank you for the replies:)
I will check this as soon as possible, however the system is remote, and the electrician disconnected the power the other day - the problem, as it turns out, is that we haven't tackled the problem of having the server (an EEE-pc) autorestart if it runs out of power...
So I will try this out as soon as someone is down there to turn it back on:)
Re: Toggle function RFXCom / Nexa
Posted: Mon Nov 14, 2011 12:48 pm
by ReWind
Well, one step closer at least - this seems to work well to pick up the trigger, so thank you for that:)
However, on trying to trigger an action which controls another Nexa-switch, the following message is all I can get out of it:
2011/11/14 11:34:40 [Devices] Can't control device 'Alarmindikator' because RFXCom Transmitter is disabled!
The RFXCom Transmitter plugin is enabled on a TCP interface, with Handshake and RFXMitter enabled, and an AC code of 05 32. (I did try to experiment with this setup quite a bit with no improvement.)
The device I am trying to control is set up as an ARC module as this was the only one that seemed to work well with the address learning socket switched from Nexa. It toggles fine from the control menu, and I've tried changing it to an AC device also to see if that made a difference, but with the same result, it toggles fine from the control menu, but will not toggle from an action.
Is this a known problem? If not, does anyone have a good idea how to solve it?
Please let me know if I can contribute with any additional information.
Re: Toggle function RFXCom / Nexa
Posted: Tue Nov 15, 2011 11:30 am
by j.hoekstra
I don;t have a Nexa-device but if you can switch it from the control-menu, you should be able to see in the devices-list which value changes on/off. With that info you can go to your action and change the action
I have my action set up like: TAB device >> set <<devicename>> <<Value1,2,3,4>> to On/Off
I test the action by using the button <<Run Now>>.
If that doesn't work, I'm fresh out of ideas :/
Re: Toggle function RFXCom / Nexa
Posted: Tue Nov 15, 2011 5:36 pm
by ReWind
Thanks for the reply:)
My action is about the same as yours, but somehow I'm not allowed to change Value1, only get the error message. I get the same error when I press "Run Now" as when the event triggers normally.
Re: Toggle function RFXCom / Nexa
Posted: Sat Jan 07, 2012 12:39 pm
by ReWind
I've now tried as well as I can to exclude any setup issues from this problem - I've swapped the DomotiGa-computer for another machine, now running Fedora instead of Ubuntu, and reinstalled DomotiGa from the bottom up - however I am still not able to control anything through the RFXCom transmitter with an event. Just setting up a simple action with "Set Alarmindikator Value1 to On" in it gives me the same error:
Code: Select all
2012/01/07 12:45:00 [Devices] Interface for device with name 'Alarmindikator' is '12'
2012/01/07 12:45:00 [Devices] Address for device with name 'Alarmindikator' is '13B5A01 01'
2012/01/07 12:45:00 [Devices] Device with address '13B5A01 01' is 'Alarmindikator'
2012/01/07 12:45:00 [Devices] RFXCom Transmitter: 13B5A01 01 On
2012/01/07 12:45:00 [Devices] Can't control device 'Alarmindikator' because RFXCom Transmitter is disabled!
However, as in the last case, the RFXCom Transmitter is enabled - what in the world could be causing this? Could it be a problem with my RFXCom LAN-box?
Any hints towards solving this would be greatly appreciated as this is currently posing a bit of a brick wall towards making my system do anything useful.
Thank you in advance:)
Re: Toggle function RFXCom / Nexa
Posted: Sat Jan 07, 2012 1:16 pm
by ReWind
Hi,
just wanted to add some more information - I finally realized I haven't tried this in singleseat mode, and when I did it finally worked!
Seems this is only a problem in server/client setups. I turned on a few more debugging options, and also tried it with the RFXComxPL-interface with similar results:
Code: Select all
2012/01/07 13:13:45 [Events] 3b. Action with id 9 named 'Slå alarm AV' executed!
2012/01/07 13:15:12 [Devices] Interface for device with name 'Alarmindikator' is '12'
2012/01/07 13:15:12 [Devices] Address for device with name 'Alarmindikator' is '13B5A01 01'
2012/01/07 13:15:12 [Devices] Device with address '13B5A01 01' is 'Alarmindikator'
2012/01/07 13:15:12 [Devices] RFXCom Transmitter: 13B5A01 01 Off
2012/01/07 13:15:12 [Devices] Can't control device 'Alarmindikator' because RFXCom Transmitter is disabled!
2012/01/07 13:15:12 [Events] 3b. Action with id 9 named 'Slå alarm AV' executed!
Code: Select all
2012/01/07 13:11:59 [Events] 3b. Action with id 8 named 'Slå alarm PÅ' executed!
2012/01/07 13:12:48 [Devices] Interface for device with name 'Alarmindikator' is '33'
2012/01/07 13:12:48 [Devices] Address for device with name 'Alarmindikator' is '13B5A01 01'
2012/01/07 13:12:48 [Devices] Device with address '13B5A01 01' is 'Alarmindikator'
2012/01/07 13:12:48 [Devices] RFXCom xPL Interface: 13B5A01 01 Off
2012/01/07 13:12:48 [Devices] Can't control device 'Alarmindikator' because RFXCom xPL interface is disabled!
Ideally I would like to run the server only, but as long as it works I'm pretty pleased:)
Re: Toggle function RFXCom / Nexa
Posted: Sun Jan 08, 2012 1:33 pm
by RDNZL
The server worked ok to begin with, if you let the events run their actions automatically they will be executed on the server, just the manual Run Now buttons in EventEditor and ActionEditor didn't work in client/server mode.
But the good News is that I just fixed that, so please download the latest svn code, compile you server and client binary, and it works...
Re: Toggle function RFXCom / Nexa
Posted: Sun Jan 08, 2012 4:31 pm
by ReWind
Sensational, thanks a lot for your work!
