Page 3 of 5

Re: Somfy/RTS control

PostPosted: Sun Jul 29, 2018 9:19 am
by koburg
Code: Select all
   RFPlayer                        Known device list:
knownDevices : (dict)
     RTS-3191872 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 1741008089 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -82 (string)
                    frameType : 0 (string)
                    frequency : 433420 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -27 (string)
                    rfQuality : 10 (string)
               infos : (dict)
                    id : 3191872 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1124932660 (integer)
          protocol : 9 (string)
          status : Active (string)
          subType : 0 (string)
     RTS-3257408 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 992426448 (integer)
               Item : 721232512 (integer)
               Item : 721232512 (integer)
               Item : 721232512 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -88 (string)
                    frameType : 0 (string)
                    frequency : 433920 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -45 (string)
                    rfQuality : 10 (string)
               infos : (dict)
                    id : 3257408 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1124932660 (integer)
          protocol : 9 (string)
          status : Active (string)
          subType : 0 (string)
     RTS-3322944 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 322467678 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -93 (string)
                    frameType : 0 (string)
                    frequency : 433920 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -66 (string)
                    rfQuality : 6 (string)
               infos : (dict)
                    id : 3322944 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1124932660 (integer)
          protocol : 9 (string)
          status : Active (string)
          subType : 0 (string)
     RTS-3388480 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -87 (string)
                    frameType : 0 (string)
                    frequency : 433420 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -35 (string)
                    rfQuality : 10 (string)
               infos : (dict)
                    id : 3388480 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1580545739 (integer)
          protocol : 9 (string)
          status : Available (string)
          subType : 0 (string)


it looks like there is 4 its but the 4th is a combined device which combine all 3 into one something you can do with the remote so you can control all 3 with same command.

Re: Somfy/RTS control

PostPosted: Sun Jul 29, 2018 9:28 am
by FlyingDiver
koburg wrote:
Code: Select all
 WebServer                       request to turn off device "rts 3" from 127.0.0.1
   RFPlayer Error                  Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 314, in actionControlSensor
KeyError: (u'RTS-3388480',)


This error came from device RTS-3388480 which, according to the dump in the last post, is not assigned to an Indigo device (Status: Available).

Can you confirm that the address field in the Indigo Client UI matches?

Re: Somfy/RTS control

PostPosted: Sun Jul 29, 2018 9:40 am
by koburg
FlyingDiver wrote:
koburg wrote:
Code: Select all
 WebServer                       request to turn off device "rts 3" from 127.0.0.1
   RFPlayer Error                  Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 314, in actionControlSensor
KeyError: (u'RTS-3388480',)


This error came from device RTS-3388480 which, according to the dump in the last post, is not assigned to an Indigo device (Status: Available).

Can you confirm that the address field in the Indigo Client UI matches?


yes they match

Code: Select all
 WebServer                       request to turn off device "rts test 1" from 127.0.0.1
   RFPlayer Error                  Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 314, in actionControlSensor
KeyError: (u'RTS-3257408',)

   WebServer                       request to turn off device "rts 3" from 127.0.0.1
   RFPlayer Error                  Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 314, in actionControlSensor
KeyError: (u'RTS-3388480',)


Re: Somfy/RTS control

PostPosted: Sun Jul 29, 2018 9:47 am
by FlyingDiver
Your devices 2 and 3 have the same address. Which should never happen. I need to look at the code again.

Re: Somfy/RTS control

PostPosted: Sun Jul 29, 2018 10:35 am
by koburg
i have now discovered how I think the other examples I posted are doing it you need to

ASSOC them I got this to work in the rfplayer config.

1. you take the remote push the programming button on the bag the shutter jiggle
2. the in the RFplayer config you go to transmitter page send command thru RTS ASSOC the the shutter jiggle
3. push the programming button on the remote to stop the programmning mode
4. now I can transmit on/off in the transmitter on the rfplayer config.
5. and control them up/down

Re: Somfy/RTS control

PostPosted: Sun Jul 29, 2018 10:58 am
by FlyingDiver
But it still doesn't work from Indigo, correct?

Re: Somfy/RTS control

PostPosted: Sun Jul 29, 2018 11:47 am
by FlyingDiver
Please do the following, exactly:

1. Set the plugin to Debug logging.
2. Dump the known devices to the log.
3. Delete all the RTS/Somfy devices.
4. Dump the known devices to the log.
5. Create all the Discovered devices you can. Do NOT rename them, leave them with the names the plugin creates.
6. Dump the known devices to the log.

Then attempt to turn on/off these devices.

The post the log here.

Thanks!

Re: Somfy/RTS control

PostPosted: Wed Aug 01, 2018 12:18 pm
by koburg
This is strange I did not get any notification from your last post

dump nr 1

Code: Select all
knownDevices : (dict)
     RTS-3191872 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 1741008089 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -82 (string)
                    frameType : 0 (string)
                    frequency : 433420 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -27 (string)
                    rfQuality : 10 (string)
               infos : (dict)
                    id : 3191872 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1124932660 (integer)
          protocol : 9 (string)
          status : Active (string)
          subType : 0 (string)
     RTS-3257408 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 992426448 (integer)
               Item : 721232512 (integer)
               Item : 721232512 (integer)
               Item : 1897376590 (integer)
               Item : 1897376590 (integer)
               Item : 1897376590 (integer)
               Item : 1308572221 (integer)
               Item : 1202620572 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -88 (string)
                    frameType : 0 (string)
                    frequency : 433920 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -45 (string)
                    rfQuality : 10 (string)
               infos : (dict)
                    id : 3257408 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1124932660 (integer)
          protocol : 9 (string)
          status : Active (string)
          subType : 0 (string)
     RTS-3322944 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 322467678 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -93 (string)
                    frameType : 0 (string)
                    frequency : 433920 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -66 (string)
                    rfQuality : 6 (string)
               infos : (dict)
                    id : 3322944 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1124932660 (integer)
          protocol : 9 (string)
          status : Active (string)
          subType : 0 (string)
     RTS-3388480 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -87 (string)
                    frameType : 0 (string)
                    frequency : 433420 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -35 (string)
                    rfQuality : 10 (string)
               infos : (dict)
                    id : 3388480 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1580545739 (integer)
          protocol : 9 (string)
          status : Available (string)
          subType : 0 (string)
     X10-A1 : (dict)
          description : X10-A1 (string)
          devices : (list)
               Item : 1428924100 (integer)
          infoType : 0 (string)
          protocol : 1 (string)
          protocolMeaning : X10 (string)
          status : Active (string)
          subType : None (string)
     X10-A2 : (dict)
          description : X10-A2 (string)
          devices : (list)
               Item : 839629549 (integer)
          infoType : 0 (string)
          protocol : 1 (string)
          protocolMeaning : X10 (string)
          status : Active (string)
          subType : None (string)

Re: Somfy/RTS control

PostPosted: Wed Aug 01, 2018 12:19 pm
by koburg
dump nr 2

Code: Select all
   RFPlayer                        Known device list:
knownDevices : (dict)
     RTS-3191872 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 1741008089 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -82 (string)
                    frameType : 0 (string)
                    frequency : 433420 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -27 (string)
                    rfQuality : 10 (string)
               infos : (dict)
                    id : 3191872 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1124932660 (integer)
          protocol : 9 (string)
          status : Active (string)
          subType : 0 (string)
     RTS-3257408 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 992426448 (integer)
               Item : 721232512 (integer)
               Item : 721232512 (integer)
               Item : 1897376590 (integer)
               Item : 1897376590 (integer)
               Item : 1897376590 (integer)
               Item : 1308572221 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -88 (string)
                    frameType : 0 (string)
                    frequency : 433920 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -45 (string)
                    rfQuality : 10 (string)
               infos : (dict)
                    id : 3257408 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1124932660 (integer)
          protocol : 9 (string)
          status : Available (string)
          subType : 0 (string)
     RTS-3322944 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 322467678 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -93 (string)
                    frameType : 0 (string)
                    frequency : 433920 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -66 (string)
                    rfQuality : 6 (string)
               infos : (dict)
                    id : 3322944 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1124932660 (integer)
          protocol : 9 (string)
          status : Active (string)
          subType : 0 (string)
     RTS-3388480 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -87 (string)
                    frameType : 0 (string)
                    frequency : 433420 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -35 (string)
                    rfQuality : 10 (string)
               infos : (dict)
                    id : 3388480 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1580545739 (integer)
          protocol : 9 (string)
          status : Available (string)
          subType : 0 (string)
     X10-A1 : (dict)
          description : X10-A1 (string)
          devices : (list)
               Item : 1428924100 (integer)
          infoType : 0 (string)
          protocol : 1 (string)
          protocolMeaning : X10 (string)
          status : Active (string)
          subType : None (string)
     X10-A2 : (dict)
          description : X10-A2 (string)
          devices : (list)
               Item : 839629549 (integer)
          infoType : 0 (string)
          protocol : 1 (string)
          protocolMeaning : X10 (string)
          status : Active (string)
          subType : None (string)

Re: Somfy/RTS control

PostPosted: Wed Aug 01, 2018 12:23 pm
by koburg
dump 3

Code: Select all
   RFPlayer                        Known device list:
knownDevices : (dict)
     RTS-3191872 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 1741008089 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -82 (string)
                    frameType : 0 (string)
                    frequency : 433420 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -27 (string)
                    rfQuality : 10 (string)
               infos : (dict)
                    id : 3191872 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1124932660 (integer)
          protocol : 9 (string)
          status : Active (string)
          subType : 0 (string)
     RTS-3257408 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 992426448 (integer)
               Item : 721232512 (integer)
               Item : 721232512 (integer)
               Item : 1897376590 (integer)
               Item : 1897376590 (integer)
               Item : 1897376590 (integer)
               Item : 1308572221 (integer)
               Item : 1602167284 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -88 (string)
                    frameType : 0 (string)
                    frequency : 433920 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -45 (string)
                    rfQuality : 10 (string)
               infos : (dict)
                    id : 3257408 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1124932660 (integer)
          protocol : 9 (string)
          status : Active (string)
          subType : 0 (string)
     RTS-3322944 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 322467678 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -93 (string)
                    frameType : 0 (string)
                    frequency : 433920 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -66 (string)
                    rfQuality : 6 (string)
               infos : (dict)
                    id : 3322944 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1124932660 (integer)
          protocol : 9 (string)
          status : Active (string)
          subType : 0 (string)
     RTS-3388480 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
               Item : 513280744 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -87 (string)
                    frameType : 0 (string)
                    frequency : 433420 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -35 (string)
                    rfQuality : 10 (string)
               infos : (dict)
                    id : 3388480 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1580545739 (integer)
          protocol : 9 (string)
          status : Available (string)
          subType : 0 (string)
     X10-A1 : (dict)
          description : X10-A1 (string)
          devices : (list)
               Item : 1428924100 (integer)
          infoType : 0 (string)
          protocol : 1 (string)
          protocolMeaning : X10 (string)
          status : Active (string)
          subType : None (string)
     X10-A2 : (dict)
          description : X10-A2 (string)
          devices : (list)
               Item : 839629549 (integer)
          infoType : 0 (string)
          protocol : 1 (string)
          protocolMeaning : X10 (string)
          status : Active (string)
          subType : None (string)

Re: Somfy/RTS control

PostPosted: Wed Aug 01, 2018 12:24 pm
by koburg
Code: Select all
   WebServer                       request to turn on device "new device 2" from 127.0.0.1
   RFPlayer Error                  Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 314, in actionControlSensor
KeyError: (u'RTS-3257408',)

   WebServer                       request to turn off device "new device 2" from 127.0.0.1
   RFPlayer Error                  Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 314, in actionControlSensor
KeyError: (u'RTS-3257408',)


Code: Select all
   WebServer                       request to turn off device "new device 3" from 127.0.0.1
   RFPlayer Error                  Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 314, in actionControlSensor
KeyError: (u'RTS-3388480',)

   WebServer                       request to turn on device "new device 3" from 127.0.0.1
   RFPlayer Error                  Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 314, in actionControlSensor
KeyError: (u'RTS-3388480',)

Re: Somfy/RTS control

PostPosted: Wed Aug 01, 2018 12:29 pm
by koburg
FlyingDiver wrote:
But it still doesn't work from Indigo, correct?


No it does not work even when I done the assoc from rfplayer config

But the two other controllers are doing assoc from there software

Re: Somfy/RTS control

PostPosted: Wed Aug 01, 2018 12:34 pm
by FlyingDiver
koburg wrote:
No it does not work even when I done the assoc from rfplayer config

But the two other controllers are doing assoc from there software


It's the hardware you're associating, so it doesn't matter which software you use to do it. I just haven't put the commands to do an ASSOC in the plugin yet.

I'll have to dig into those dumps and figure out why that key error is happening. Thanks for the info, and I'll get back to you on it soon.

Re: Somfy/RTS control

PostPosted: Wed Aug 01, 2018 12:38 pm
by koburg
ok and thank you for taking time to try make it work

is there a file containing the known device In the plugin folder think I could try erase that and start from "scratch" ?

Re: Somfy/RTS control

PostPosted: Wed Aug 01, 2018 12:41 pm
by FlyingDiver
koburg wrote:
ok and thank you for taking time to try make it work

is there a file containing the known device In the plugin folder think I could try erase that and start from "scratch" ?


If you delete all the Indigo devices, then do the menu command "Purge known devices", it should clear everything out. You can do another "Dump known devices" command to be sure.

Otherwise, you could delete that info from the plugin preferences file.