Somfy/RTS control

Posted on
Wed Aug 01, 2018 4:15 pm
FlyingDiver offline
Posts: 2378
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Somfy/RTS control

OK, looking over the data, you definitely have some bogus known devices data, and I don't think the instructions in my last post will clean them up.

So, edit the preferences file for the plugin, which is at <Indigo install>/Preferences/Plugins/com.flyingdiver.indigoplugin.rfplayer.indiPref

First, delete all the Indigo devices for the shades, then disable the plugin. Use a plain text editor to edit the file.

Delete everything between these two lines:

Code: Select all
   <knownDevices type="dict">

   </knownDevices>


Save the file, then restart the plugin. You'll need to use your remote again so that the RFPlayer sees the commands and adds them to the known devices list. Then recreate the Indigo devices.

Sorry for all this. I'm going to work on code to try to clean this up automatically, but that's going to take a bit of work.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Aug 05, 2018 9:10 am
koburg offline
Posts: 126
Joined: Jul 27, 2017

Re: Somfy/RTS control

Hi

I Have done also the Manuel clearing of the com.flyingdiver.indigoplugin.rfplayer.indiPref

and the device list are then working

but Still same issue's from earlier.

Posted on
Sun Aug 05, 2018 9:27 am
FlyingDiver offline
Posts: 2378
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Somfy/RTS control

I'm not going to try to guess what issues from before actually means.

Now that we have the devices cleaned up, please post a known devices dump. And then post a log section showing the commands you're executing and the results.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Aug 09, 2018 2:28 pm
koburg offline
Posts: 126
Joined: Jul 27, 2017

Re: Somfy/RTS control

it means still no luck getting things working

here is the dump:

Code: Select all
   RFPlayer                        Known device list:
knownDevices : (dict)
     DOMIA-A1 : (dict)
          description : A1 (string)
          devices : (list)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -89 (string)
                    frameType : 0 (string)
                    frequency : 433920 (string)
                    infoType : 0 (string)
                    protocol : 6 (string)
                    protocolMeaning : DOMIA (string)
                    rfLevel : -78 (string)
                    rfQuality : 2 (string)
               infos : (dict)
                    id : 0 (string)
                    idMeaning : A1 (string)
                    subType : 0 (string)
                    subTypeMeaning : OFF (string)
          playerId : 1767248280 (integer)
          protocol : 6 (string)
          status : Available (string)
          subType : 0 (string)
     RTS-3257408 : (dict)
          description : Shutter (string)
          devices : (list)
               Item : 256247804 (integer)
               Item : 256247804 (integer)
               Item : 256247804 (integer)
          frameData : (dict)
               header : (dict)
                    cluster : 0 (string)
                    dataFlag : 0 (string)
                    floorNoise : -91 (string)
                    frameType : 0 (string)
                    frequency : 433920 (string)
                    infoType : 3 (string)
                    protocol : 9 (string)
                    protocolMeaning : RTS (string)
                    rfLevel : -63 (string)
                    rfQuality : 7 (string)
               infos : (dict)
                    id : 3257408 (string)
                    qualifier : 7 (string)
                    qualifierMeaning : (dict)
                         flags : (list)
                              Item : Up/On (string)
                    subType : 0 (string)
                    subTypeMeaning : Shutter (string)
          playerId : 1767248280 (integer)
          protocol : 9 (string)
          status : Active (string)
          subType : 0 (string)

Posted on
Thu Aug 09, 2018 2:34 pm
koburg offline
Posts: 126
Joined: Jul 27, 2017

Re: Somfy/RTS control

Device test

Code: Select all
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',)

Posted on
Thu Aug 09, 2018 2:39 pm
FlyingDiver offline
Posts: 2378
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Somfy/RTS control

Hmm. I need a device dump. Run this Python script in the scripting shell or in an Action Group:

Code: Select all
indigo.server.log(unicode(indigo.devices[256247804]))


Please confirm that the number in the script is the Indigo DeviceId of your "new device 2".

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Aug 10, 2018 4:03 am
koburg offline
Posts: 126
Joined: Jul 27, 2017

Re: Somfy/RTS control

Code: Select all
   Script                          address : RTS-3257408
allowOnStateChange : False
allowSensorValueChange : False
batteryLevel : None
buttonGroupCount : 0
configured : True
description :
deviceTypeId : discoveredDevice
displayStateId : sensorValue
displayStateImageSel : SensorOff
displayStateValRaw : 0
displayStateValUi : 0
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 0
globalProps : MetaProps : (dict)
     com.flyingdiver.indigoplugin.rfplayer : (dict)
          AllowOnStateChange : false (bool)
          IsDiscoverable : true (bool)
          SupportsOnState : true (bool)
          SupportsSensorValue : true (bool)
          SupportsStatusRequest : false (bool)
          address : RTS-3257408 (string)
          devVersCount : 2 (integer)
id : 1001884089
lastChanged : 2000-01-01 00:00:00
lastSuccessfulComm : 2000-01-01 00:00:00
model : Discovered Device
name : new device 2
onState : False
ownerProps : com.flyingdiver.indigoplugin.rfplayer : (dict)
     AllowOnStateChange : false (bool)
     IsDiscoverable : true (bool)
     SupportsOnState : true (bool)
     SupportsSensorValue : true (bool)
     SupportsStatusRequest : false (bool)
     address : RTS-3257408 (string)
     devVersCount : 2 (integer)
pluginId : com.flyingdiver.indigoplugin.rfplayer
pluginProps : emptyDict : (dict)
protocol : Plugin
remoteDisplay : True
sensorValue : 0.0
states : States : (dict)
     faultCode :  (string)
     onOffState : off (on/off bool)
     sensorValue : 0 (integer)
subModel :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsOnState : True
supportsSensorValue : True
supportsStatusRequest : False
version : None

Posted on
Fri Aug 10, 2018 8:56 am
FlyingDiver offline
Posts: 2378
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Somfy/RTS control


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Aug 10, 2018 12:15 pm
koburg offline
Posts: 126
Joined: Jul 27, 2017

Re: Somfy/RTS control

Code: Select all
WebServer                       request to turn off device "RTS-3257408" from 127.0.0.1
   WebServer                       request to turn off device "RTS-3322944" from 127.0.0.1


now there is no error but nothing happen with the blinds

Posted on
Fri Aug 10, 2018 12:33 pm
FlyingDiver offline
Posts: 2378
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Somfy/RTS control

koburg wrote:
Code: Select all
WebServer                       request to turn off device "RTS-3257408" from 127.0.0.1
   WebServer                       request to turn off device "RTS-3322944" from 127.0.0.1


now there is no error but nothing happen with the blinds


Don't use a control page to test. Use the Indigo client.

And turn on debug level logging for testing.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sat Aug 11, 2018 1:22 am
koburg offline
Posts: 126
Joined: Jul 27, 2017

Re: Somfy/RTS control

here you are 8)

Code: Select all
RFPlayer Debug                  actionControlSensor: sensor = <protocols.rts.RTS object at 0x10a8d59d0>, player = <RFPlayer.RFPlayer object at 0x10a8d5890>, action = configured : True
delayAmount : 900
description : turn on device
deviceId : 240007113
replaceExisting : True
sensorAction : TurnOn
textToSpeak :
   RFPlayer Debug                  RTS turnOn command 'on rts 3257408 qualifier 0' to RF USB
   RFPlayer Debug                  json decode failure:
ZIA--
error request number=0
Syntax error: on rts 3257408 qualifier 0

Posted on
Sat Aug 11, 2018 7:20 am
FlyingDiver offline
Posts: 2378
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Somfy/RTS control

Try this one: https://github.com/FlyingDiver/Indigo-R ... /tag/7.1.4

At this point, I think the plugin is processing the commands properly. Now it's just a matter of getting the syntax of the command strings sent to the RFPlayer correct.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Aug 15, 2018 7:56 am
koburg offline
Posts: 126
Joined: Jul 27, 2017

Re: Somfy/RTS control

You got Success ! :D

now they kan go up and down thru the on off button alle shutters that are discovered do this now!

now I hope you can make the MY/Stop function work which is a memory spot you can set for the blinds.

and also "dimmer" function which means go xx % for the blinds.

I know the rfplayer support the functions I tested it from the RFconfig and the log in the RFconfig also knows "MY/Stop"

the MY button is also used as stop command.

Code: Select all
   RFPlayer Debug                  actionControlSensor: sensor = <protocols.rts.RTS object at 0x113dad7d0>, player = <RFPlayer.RFPlayer object at 0x113dad850>, action = configured : True
delayAmount : 900
description : turn on device
deviceId : 1636726277
replaceExisting : True
sensorAction : TurnOn
textToSpeak :
   RFPlayer Debug                  RTS turnOn command 'on rts ID 3191872 qualifier 0' to RF USB
   RFPlayer Debug                  actionControlSensor: sensor = <protocols.rts.RTS object at 0x113dad7d0>, player = <RFPlayer.RFPlayer object at 0x113dad850>, action = configured : True
delayAmount : 900
description : turn off device
deviceId : 1636726277
replaceExisting : True
sensorAction : TurnOff
textToSpeak :
   RFPlayer Debug                  RTS turnOff command 'off rts ID 3191872 qualifier 0' to RF USB
   RFPlayer Debug                  actionControlSensor: sensor = <protocols.rts.RTS object at 0x113dad7d0>, player = <RFPlayer.RFPlayer object at 0x113dad850>, action = configured : True
delayAmount : 900
description : turn on device
deviceId : 1636726277
replaceExisting : True
sensorAction : TurnOn
textToSpeak :
   RFPlayer Debug                  RTS turnOn command 'on rts ID 3191872 qualifier 0' to RF USB

Posted on
Wed Aug 15, 2018 10:05 am
FlyingDiver offline
Posts: 2378
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Somfy/RTS control

Can you post the log from RFconfig? Hopefully it shows the syntax of the commands sent to the RFPlayer.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Aug 15, 2018 12:19 pm
FlyingDiver offline
Posts: 2378
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Somfy/RTS control

koburg wrote:
now I hope you can make the MY/Stop function work which is a memory spot you can set for the blinds.


Have you tried the "Send My" command? The syntax is the same as the on/off commands, and I think I had another user already test it.

It's the in the "RFPlayer Actions" group.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Who is online

Users browsing this forum: No registered users and 0 guests