How to send a "On" command even if the trigger device is On

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
daferra
Starting Member
Starting Member
Posts: 42
Joined: Wed Jul 15, 2009 10:42 am
Location: Netherlands

How to send a "On" command even if the trigger device is On

Post by daferra »

Because of a reason I still not figured out why sometimes commands do not reach the devices, I want to be able to resend the command once more when I push the button on my KAKU AWST-8802 device.

At this moment I have 3 Greewave powernode's that I use for measuring and powering down / on devices. for example I have one powernode on my work desk and on there my scanner, printer, videoconference unit and scan server is connected. this equipment is about 80 watt. When I am not home or behind my desk this equipment needs to be off. But I want to have a switch nearby to turn everything on. I replaced a normal single light switch with a double kaku switch. on for the lights and the other for turning on the equipment on my desk.

At this moment it seems like that domotiga is not always able to send the "on" commands to the zwave devices. I can see in the logs that the commands from kaku reach domotiga all the time.

I now have a event with a trigger (device status, if "device" = On) and the a couple of action to turn the device's. but if the the kaku status is already "on" this event is not going to triggered.

Can someone help me creating a event with the right triggers that always send a "on" command.
j.hoekstra
Member
Member
Posts: 255
Joined: Thu Jun 25, 2009 2:09 pm
Location: Enschede, The Netherlands

Re: How to send a "On" command even if the trigger device is On

Post by j.hoekstra »

You'll need to program a trigger on basis of device status(like you probably already do) on the "Edit Trigger" screen:
if [deviceNAME][LastSeen] <> " "
you choose [deviceNAME] and [LastSeen] from the list.

After this you can have domotiga execute everytime you push the on button.
Last edited by j.hoekstra on Tue Sep 11, 2012 1:32 pm, edited 1 time in total.
daferra
Starting Member
Starting Member
Posts: 42
Joined: Wed Jul 15, 2009 10:42 am
Location: Netherlands

Re: How to send a "On" command even if the trigger device is On

Post by daferra »

doesn't seem to work that way. when I create a trigger lik this:
Screen Shot 2012-09-11 at 12.40.10 PM.png
Screen Shot 2012-09-11 at 12.40.10 PM.png (53.15 KiB) Viewed 7248 times
My equipment goes on and off directly in seconds.

see debug below:

012/09/11 12:46:37 [RFXComTRX] < 0B110004006DA2D60C010F60
2012/09/11 12:46:37 [RFXComTRX] Packettype = Lighting2
2012/09/11 12:46:37 [RFXComTRX] Subtype = AC
2012/09/11 12:46:37 [RFXComTRX] Sequence no. = 4
2012/09/11 12:46:37 [RFXComTRX] ID = 06DA2D6 12
2012/09/11 12:46:37 [RFXComTRX] Command = On
2012/09/11 12:46:37 [RFXComTRX] Signal level = 6
2012/09/11 12:46:37 [Z-Wave] Sending command Off to address 7.
2012/09/11 12:46:37 [Z-Wave] Set value for node 7 and instance 1 to 0
2012/09/11 12:46:37 [Z-Wave] Sending command Off to address 7:3.
2012/09/11 12:46:37 [Z-Wave] Set value for node 7 and instance 3 to 0
2012/09/11 12:46:37 [Z-Wave] Sending command Off to address 7:2.
2012/09/11 12:46:37 [Z-Wave] Set value for node 7 and instance 2 to 0
2012/09/11 12:46:37 [Z-Wave] Sending command On to address 7.
2012/09/11 12:46:37 [Z-Wave] Set value for node 7 and instance 1 to 255
2012/09/11 12:46:37 [Z-Wave] Sending command On to address 7:2.
2012/09/11 12:46:37 [Z-Wave] Set value for node 7 and instance 2 to 255
2012/09/11 12:46:37 [Z-Wave] Sending command On to address 7:3.
2012/09/11 12:46:37 [Z-Wave] Set value for node 7 and instance 3 to 255
2012/09/11 12:46:37 [Z-Wave] Got value changed notification for node 7 and instance 1 value1 changed to Off.
2012/09/11 12:46:37 [Z-Wave] Got value changed notification for node 7 and instance 3 value1 changed to Off.
2012/09/11 12:46:37 [Z-Wave] Got value changed notification for node 7 and instance 2 value1 changed to Off.
2012/09/11 12:46:37 [Z-Wave] Got value changed notification for node 7 and instance 1 value1 changed to On.
2012/09/11 12:46:37 [Z-Wave] Got value changed notification for node 7 and instance 2 value1 changed to On.
2012/09/11 12:46:38 [Z-Wave] Got value changed notification for node 7 and instance 3 value1 changed to On
j.hoekstra
Member
Member
Posts: 255
Joined: Thu Jun 25, 2009 2:09 pm
Location: Enschede, The Netherlands

Re: How to send a "On" command even if the trigger device is On

Post by j.hoekstra »

Sorry, the "" needs to have a space inbetween like " ".
daferra
Starting Member
Starting Member
Posts: 42
Joined: Wed Jul 15, 2009 10:42 am
Location: Netherlands

Re: How to send a "On" command even if the trigger device is On

Post by daferra »

Is still not working for me. I tried different option like: two spaces between or like this "On" but still not working.
j.hoekstra
Member
Member
Posts: 255
Joined: Thu Jun 25, 2009 2:09 pm
Location: Enschede, The Netherlands

Re: How to send a "On" command even if the trigger device is On

Post by j.hoekstra »

The Trigger works if I look at the output, however you still need to check if the status of the device you trigger with is "On" or "Off". I'm guessing you have 2 events for the triggering device, switching on and off and both get triggered.
daferra
Starting Member
Starting Member
Posts: 42
Joined: Wed Jul 15, 2009 10:42 am
Location: Netherlands

Re: How to send a "On" command even if the trigger device is On

Post by daferra »

Yes that is true, I have two events 1 for one for "On" and one for "Off". If I disable my "Off" event your methode is working perfect. I don't know exactly how the "Off" event is triggered. Any idee's how I can do the check before?
j.hoekstra
Member
Member
Posts: 255
Joined: Thu Jun 25, 2009 2:09 pm
Location: Enschede, The Netherlands

Re: How to send a "On" command even if the trigger device is On

Post by j.hoekstra »

An event is build up with a trigger which starts the eveluation of the event, a condition where the status of the triggering device and possibly other conditions are check(only execute when dark for instance) and then the action which sets a device to a certain state.

In "Condition(s)" you need to define that the state of the device is "On" or "Off", if you do that you can both switch on and off.
daferra
Starting Member
Starting Member
Posts: 42
Joined: Wed Jul 15, 2009 10:42 am
Location: Netherlands

Re: How to send a "On" command even if the trigger device is On

Post by daferra »

thank you. I reconfigured all my switches and this is working perfectly. I also understand the "lastseen" option now.
j.hoekstra
Member
Member
Posts: 255
Joined: Thu Jun 25, 2009 2:09 pm
Location: Enschede, The Netherlands

Re: How to send a "On" command even if the trigger device is On

Post by j.hoekstra »

Nice and thanks for reporting back :)
Post Reply

Return to “DomotiGa Forum”