iMicknl / ha-tahoma

Custom component for Home Assistant to interact with smart devices via Somfy TaHoma or other OverKiz based API's.
MIT License
152 stars 30 forks source link

Add support for Siren (io:SomfyIndoorSimpleSirenIOComponent) #57

Closed Glenn1986 closed 4 years ago

Glenn1986 commented 4 years ago

Somfy Tahomo Box 2020.1.4-2 version

Device information Somfy Rollershutter RTS Somfy Contact Sensor IO Somfy Motion Sensor IO Somfy Temperature Sensor IO Somfy Lightsensor IO Somfy Blind IO (got error for this one) and a lot more see json output

Device details


   "devices":[
      {
         "creationTime":1569661831000,
         "lastUpdateTime":1569661831000,
         "label":"Alarm",
         "shortcut":false,
         "controllableName":"internal:TSKAlarmComponent",
         "definition":{
            "commands":[
               {
                  "commandName":"alarmOff",
                  "nparams":0
               },
               {
                  "commandName":"alarmOn",
                  "nparams":0
               },
               {
                  "commandName":"getName",
                  "nparams":0
               },
               {
                  "commandName":"off",
                  "nparams":0
               },
               {
                  "commandName":"on",
                  "nparams":0
               },
               {
                  "commandName":"setName",
                  "nparams":1
               },
               {
                  "commandName":"refreshAlarmDelay",
                  "nparams":0
               },
               {
                  "commandName":"refreshCurrentAlarmMode",
                  "nparams":0
               },
               {
                  "commandName":"refreshIntrusionDetected",
                  "nparams":0
               },
               {
                  "commandName":"setAlarmDelay",
                  "nparams":1
               },
               {
                  "commandName":"alarmPartial1",
                  "nparams":0
               },
               {
                  "commandName":"alarmPartial2",
                  "nparams":0
               },
               {
                  "commandName":"setIntrusionDetected",
                  "nparams":1
               },
               {
                  "commandName":"setTargetAlarmMode",
                  "nparams":1
               }
            ],
            "states":[
               {
                  "type":"DataState",
                  "qualifiedName":"core:NameState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"internal:AlarmDelayState"
               },
               {
                  "values":[
                     "off",
                     "partial1",
                     "partial2",
                     "total"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"internal:CurrentAlarmModeState"
               },
               {
                  "values":[
                     "detected",
                     "notDetected",
                     "pending",
                     "sos"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"internal:IntrusionDetectedState"
               },
               {
                  "values":[
                     "off",
                     "partial1",
                     "partial2",
                     "sos",
                     "total"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"internal:TargetAlarmModeState"
               }
            ],
            "dataProperties":[

            ],
            "widgetName":"TSKAlarmController",
            "uiClass":"Alarm",
            "qualifiedName":"internal:TSKAlarmComponent",
            "type":"ACTUATOR"
         },
         "states":[
            {
               "name":"core:NameState",
               "type":3,
               "value":"alarm name"
            },
            {
               "name":"internal:CurrentAlarmModeState",
               "type":3,
               "value":"off"
            },
            {
               "name":"internal:AlarmDelayState",
               "type":1,
               "value":30
            },
            {
               "name":"internal:TargetAlarmModeState",
               "type":3,
               "value":"off"
            },
            {
               "name":"internal:IntrusionDetectedState",
               "type":3,
               "value":"notDetected"
            }
         ],
         "attributes":[

         ],
         "available":true,
         "enabled":true,
         "widget":"TSKAlarmController",
         "type":1,
         "uiClass":"Alarm"
      },
      {
         "creationTime":1569661581000,
         "lastUpdateTime":1569661581000,
         "label":"Algemeen",
         "shortcut":false,
         "controllableName":"internal:PodV2Component",
         "metadata":"{\"tahoma\":{\"touchButtonFlag\":true}}",
         "definition":{
            "commands":[
               {
                  "commandName":"getName",
                  "nparams":0
               },
               {
                  "commandName":"update",
                  "nparams":0
               },
               {
                  "commandName":"setCountryCode",
                  "nparams":1
               },
               {
                  "commandName":"activateCalendar",
                  "nparams":0
               },
               {
                  "commandName":"deactivateCalendar",
                  "nparams":0
               },
               {
                  "commandName":"refreshBatteryStatus",
                  "nparams":0
               },
               {
                  "commandName":"refreshPodMode",
                  "nparams":0
               },
               {
                  "commandName":"refreshUpdateStatus",
                  "nparams":0
               },
               {
                  "commandName":"setCalendar",
                  "nparams":1
               },
               {
                  "commandName":"setLightingLedPodMode",
                  "nparams":1
               },
               {
                  "commandName":"setPodLedOff",
                  "nparams":0
               },
               {
                  "commandName":"setPodLedOn",
                  "nparams":0
               }
            ],
            "states":[
               {
                  "values":[
                     "offline",
                     "online"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:ConnectivityState"
               },
               {
                  "type":"DataState",
                  "qualifiedName":"core:CountryCodeState"
               },
               {
                  "values":[
                     "pressed",
                     "stop"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:CyclicButtonState"
               },
               {
                  "type":"DataState",
                  "qualifiedName":"core:NameState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"internal:BatteryStatusState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"internal:LightingLedPodModeState"
               }
            ],
            "dataProperties":[

            ],
            "widgetName":"Pod",
            "uiClass":"Pod",
            "qualifiedName":"internal:PodV2Component",
            "type":"ACTUATOR"
         },
         "states":[
            {
               "name":"core:NameState",
               "type":3,
               "value":"Box"
            },
            {
               "name":"internal:BatteryStatusState",
               "type":3,
               "value":"no"
            },
            {
               "name":"internal:LightingLedPodModeState",
               "type":2,
               "value":0.0
            },
            {
               "name":"core:CountryCodeState",
               "type":3,
               "value":"BE"
            }
         ],
         "attributes":[

         ],
         "available":true,
         "enabled":true,
         "widget":"Pod",
         "type":1,
         "uiClass":"Pod"
      },
      {
         "creationTime":1569663971000,
         "lastUpdateTime":1569663971000,
         "label":"Telenet TV",
         "shortcut":false,
         "controllableName":"io:OnOffIOComponent",
         "definition":{
            "commands":[
               {
                  "commandName":"delayedStopIdentify",
                  "nparams":1
               },
               {
                  "commandName":"getName",
                  "nparams":0
               },
               {
                  "commandName":"identify",
                  "nparams":0
               },
               {
                  "commandName":"off",
                  "nparams":0
               },
               {
                  "commandName":"on",
                  "nparams":0
               },
               {
                  "commandName":"onWithTimer",
                  "nparams":1
               },
               {
                  "commandName":"setName",
                  "nparams":1
               },
               {
                  "commandName":"setOnOff",
                  "nparams":1
               },
               {
                  "commandName":"startIdentify",
                  "nparams":0
               },
               {
                  "commandName":"stopIdentify",
                  "nparams":0
               },
               {
                  "commandName":"wink",
                  "nparams":1
               }
            ],
            "states":[
               {
                  "type":"DataState",
                  "qualifiedName":"core:NameState"
               },
               {
                  "values":[
                     "off",
                     "on"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:OnOffState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:PriorityLockTimerState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:RSSILevelState"
               },
               {
                  "values":[
                     "available",
                     "unavailable"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:StatusState"
               },
               {
                  "values":[
                     "comfortLevel1",
                     "comfortLevel2",
                     "comfortLevel3",
                     "comfortLevel4",
                     "environmentProtection",
                     "humanProtection",
                     "userLevel1",
                     "userLevel2"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"io:PriorityLockLevelState"
               },
               {
                  "values":[
                     "LSC",
                     "SAAC",
                     "SFC",
                     "UPS",
                     "externalGateway",
                     "localUser",
                     "myself",
                     "rain",
                     "security",
                     "temperature",
                     "timer",
                     "user",
                     "wind"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"io:PriorityLockOriginatorState"
               }
            ],
            "dataProperties":[
               {
                  "value":"500",
                  "qualifiedName":"core:identifyInterval"
               }
            ],
            "widgetName":"StatefulOnOff",
            "uiClass":"OnOff",
            "qualifiedName":"io:OnOffIOComponent",
            "type":"ACTUATOR"
         },
         "states":[
            {
               "name":"core:NameState",
               "type":3,
               "value":"Telenet TV"
            },
            {
               "name":"core:PriorityLockTimerState",
               "type":1,
               "value":0
            },
            {
               "name":"core:StatusState",
               "type":3,
               "value":"available"
            },
            {
               "name":"core:RSSILevelState",
               "type":2,
               "value":100.0
            },
            {
               "name":"core:OnOffState",
               "type":3,
               "value":"on"
            }
         ],
         "attributes":[

         ],
         "available":true,
         "enabled":true,
         "widget":"StatefulOnOff",
         "type":1,
         "uiClass":"OnOff"
      },
      {
         "creationTime":1590647429000,
         "lastUpdateTime":1590647429000,
         "label":"Siren io",
         "shortcut":false,
         "controllableName":"io:SomfyIndoorSimpleSirenIOComponent",
         "definition":{
            "commands":[
               {
                  "commandName":"delayedStopIdentify",
                  "nparams":1
               },
               {
                  "commandName":"getName",
                  "nparams":0
               },
               {
                  "commandName":"identify",
                  "nparams":0
               },
               {
                  "commandName":"off",
                  "nparams":0
               },
               {
                  "commandName":"setName",
                  "nparams":1
               },
               {
                  "commandName":"startIdentify",
                  "nparams":0
               },
               {
                  "commandName":"stopIdentify",
                  "nparams":0
               },
               {
                  "commandName":"wink",
                  "nparams":1
               },
               {
                  "commandName":"ringWithDoubleSimpleSequence",
                  "nparams":8
               },
               {
                  "commandName":"ringWithSingleSimpleSequence",
                  "nparams":4
               },
               {
                  "commandName":"ringWithThreeSimpleSequence",
                  "nparams":12
               },
               {
                  "commandName":"setMemorizedSimpleVolume",
                  "nparams":1
               }
            ],
            "states":[
               {
                  "values":[
                     "full",
                     "low",
                     "normal",
                     "verylow"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:BatteryState"
               },
               {
                  "type":"DataState",
                  "qualifiedName":"core:NameState"
               },
               {
                  "values":[
                     "off",
                     "on"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:OnOffState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:PriorityLockTimerState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:RSSILevelState"
               },
               {
                  "values":[
                     "available",
                     "unavailable"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:StatusState"
               },
               {
                  "values":[
                     "highest",
                     "standard"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"io:MemorizedSimpleVolumeState"
               },
               {
                  "values":[
                     "comfortLevel1",
                     "comfortLevel2",
                     "comfortLevel3",
                     "comfortLevel4",
                     "environmentProtection",
                     "humanProtection",
                     "userLevel1",
                     "userLevel2"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"io:PriorityLockLevelState"
               },
               {
                  "values":[
                     "LSC",
                     "SAAC",
                     "SFC",
                     "UPS",
                     "externalGateway",
                     "localUser",
                     "myself",
                     "rain",
                     "security",
                     "temperature",
                     "timer",
                     "user",
                     "wind"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"io:PriorityLockOriginatorState"
               }
            ],
            "dataProperties":[
               {
                  "value":"500",
                  "qualifiedName":"core:identifyInterval"
               }
            ],
            "widgetName":"IOSiren",
            "uiClass":"Siren",
            "qualifiedName":"io:SomfyIndoorSimpleSirenIOComponent",
            "type":"ACTUATOR"
         },
         "states":[
            {
               "name":"core:NameState",
               "type":3,
               "value":"Siren io"
            },
            {
               "name":"core:PriorityLockTimerState",
               "type":1,
               "value":0
            },
            {
               "name":"core:StatusState",
               "type":3,
               "value":"available"
            },
            {
               "name":"core:RSSILevelState",
               "type":2,
               "value":100.0
            },
            {
               "name":"core:BatteryState",
               "type":3,
               "value":"normal"
            },
            {
               "name":"core:OnOffState",
               "type":3,
               "value":"off"
            }
         ],
         "attributes":[

         ],
         "available":true,
         "enabled":true,
         "widget":"IOSiren",
         "type":1,
         "uiClass":"Siren"
      },
      {
         "creationTime":1569664702000,
         "lastUpdateTime":1569664702000,
         "label":"Berging",
         "shortcut":false,
         "controllableName":"io:SomfyOccupancyIOSystemSensor",
         "definition":{
            "commands":[

            ],
            "states":[
               {
                  "eventBased":true,
                  "values":[
                     "noPersonInside",
                     "personInside"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:OccupancyState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:RSSILevelState"
               },
               {
                  "values":[
                     "dead",
                     "lowBattery",
                     "maintenanceRequired",
                     "noDefect"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:SensorDefectState"
               },
               {
                  "values":[
                     "available",
                     "unavailable"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:StatusState"
               }
            ],
            "dataProperties":[

            ],
            "widgetName":"OccupancySensor",
            "uiClass":"OccupancySensor",
            "qualifiedName":"io:SomfyOccupancyIOSystemSensor",
            "type":"SENSOR"
         },
         "states":[
            {
               "name":"core:OccupancyState",
               "type":3,
               "value":"noPersonInside"
            },
            {
               "name":"core:StatusState",
               "type":3,
               "value":"available"
            },
            {
               "name":"core:RSSILevelState",
               "type":2,
               "value":98.0
            }
         ],
         "attributes":[
            {
               "name":"core:PowerSourceType",
               "type":3,
               "value":"battery"
            }
         ],
         "available":true,
         "enabled":true,
         "widget":"OccupancySensor",
         "type":2,
         "uiClass":"OccupancySensor"
      },
      {
         "creationTime":1582270508000,
         "lastUpdateTime":1582270508000,
         "label":"Licht terras",
         "shortcut":false,
         "controllableName":"io:DimmableLightIOComponent",
         "definition":{
            "commands":[
               {
                  "commandName":"delayedStopIdentify",
                  "nparams":1
               },
               {
                  "commandName":"getName",
                  "nparams":0
               },
               {
                  "commandName":"identify",
                  "nparams":0
               },
               {
                  "commandName":"my",
                  "nparams":0
               },
               {
                  "commandName":"off",
                  "nparams":0
               },
               {
                  "commandName":"on",
                  "nparams":0
               },
               {
                  "commandName":"onWithTimer",
                  "nparams":1
               },
               {
                  "commandName":"refreshMemorized1Position",
                  "nparams":0
               },
               {
                  "commandName":"setIntensity",
                  "nparams":1
               },
               {
                  "commandName":"setIntensityWithTimer",
                  "nparams":3
               },
               {
                  "commandName":"setMemorized1Position",
                  "nparams":1
               },
               {
                  "commandName":"setName",
                  "nparams":1
               },
               {
                  "commandName":"setOnOff",
                  "nparams":1
               },
               {
                  "commandName":"setPosition",
                  "nparams":1
               },
               {
                  "commandName":"setSecuredPosition",
                  "nparams":1
               },
               {
                  "commandName":"startIdentify",
                  "nparams":0
               },
               {
                  "commandName":"stopIdentify",
                  "nparams":0
               },
               {
                  "commandName":"wink",
                  "nparams":1
               }
            ],
            "states":[
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:LightIntensityState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:Memorized1PositionState"
               },
               {
                  "type":"DataState",
                  "qualifiedName":"core:NameState"
               },
               {
                  "values":[
                     "off",
                     "on"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:OnOffState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:PriorityLockTimerState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:RSSILevelState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:SecuredPositionState"
               },
               {
                  "values":[
                     "available",
                     "unavailable"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:StatusState"
               },
               {
                  "values":[
                     "comfortLevel1",
                     "comfortLevel2",
                     "comfortLevel3",
                     "comfortLevel4",
                     "environmentProtection",
                     "humanProtection",
                     "userLevel1",
                     "userLevel2"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"io:PriorityLockLevelState"
               },
               {
                  "values":[
                     "LSC",
                     "SAAC",
                     "SFC",
                     "UPS",
                     "externalGateway",
                     "localUser",
                     "myself",
                     "rain",
                     "security",
                     "temperature",
                     "timer",
                     "user",
                     "wind"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"io:PriorityLockOriginatorState"
               }
            ],
            "dataProperties":[
               {
                  "value":"500",
                  "qualifiedName":"core:identifyInterval"
               }
            ],
            "widgetName":"DimmerLight",
            "uiClass":"Light",
            "qualifiedName":"io:DimmableLightIOComponent",
            "type":"ACTUATOR"
         },
         "states":[
            {
               "name":"core:NameState",
               "type":3,
               "value":"Licht terras"
            },
            {
               "name":"core:PriorityLockTimerState",
               "type":1,
               "value":0
            },
            {
               "name":"core:StatusState",
               "type":3,
               "value":"available"
            },
            {
               "name":"core:RSSILevelState",
               "type":2,
               "value":82.0
            },
            {
               "name":"core:LightIntensityState",
               "type":1,
               "value":0
            },
            {
               "name":"core:OnOffState",
               "type":3,
               "value":"off"
            }
         ],
         "attributes":[

         ],
         "available":true,
         "enabled":true,
         "widget":"DimmerLight",
         "type":1,
         "uiClass":"Light"
      },
      {
         "creationTime":1569671882000,
         "lastUpdateTime":1569671882000,
         "label":"Lichtsensor",
         "shortcut":false,
         "controllableName":"io:LightIOSystemSensor",
         "definition":{
            "commands":[

            ],
            "states":[
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:LuminanceState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:RSSILevelState"
               },
               {
                  "values":[
                     "dead",
                     "lowBattery",
                     "maintenanceRequired",
                     "noDefect"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:SensorDefectState"
               },
               {
                  "values":[
                     "available",
                     "unavailable"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:StatusState"
               }
            ],
            "dataProperties":[
               {
                  "value":{
                     "activationDelayMap":{
                        "middle":0,
                        "lower":1200,
                        "upper":300
                     },
                     "referenceStates":[
                        "middle",
                        "lower",
                        "upper"
                     ],
                     "qualifiedName":"io:SunSensorHysteresisBehavior"
                  },
                  "qualifiedName":"core:timeBasedHysteresisBehavior"
               }
            ],
            "widgetName":"LuminanceSensor",
            "uiClass":"LightSensor",
            "qualifiedName":"io:LightIOSystemSensor",
            "type":"SENSOR"
         },
         "states":[
            {
               "name":"core:StatusState",
               "type":3,
               "value":"available"
            },
            {
               "name":"core:RSSILevelState",
               "type":2,
               "value":72.0
            },
            {
               "name":"core:LuminanceState",
               "type":2,
               "value":1176.0
            }
         ],
         "attributes":[
            {
               "name":"core:MinSensedValue",
               "type":1,
               "value":50
            },
            {
               "name":"core:MaxSensedValue",
               "type":1,
               "value":100000
            },
            {
               "name":"core:MeasuredValueType",
               "type":3,
               "value":"core:LuminanceInLux"
            },
            {
               "name":"core:PowerSourceType",
               "type":3,
               "value":"battery"
            }
         ],
         "available":true,
         "enabled":true,
         "widget":"LuminanceSensor",
         "type":2,
         "uiClass":"LightSensor"
      },
      {
         "creationTime":1590602842000,
         "lastUpdateTime":1590602842000,
         "label":"Temperatuur terras",
         "shortcut":false,
         "controllableName":"io:TemperatureIOSystemSensor",
         "definition":{
            "commands":[

            ],
            "states":[
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:RSSILevelState"
               },
               {
                  "values":[
                     "dead",
                     "lowBattery",
                     "maintenanceRequired",
                     "noDefect"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:SensorDefectState"
               },
               {
                  "values":[
                     "available",
                     "unavailable"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:StatusState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:TemperatureState"
               }
            ],
            "dataProperties":[

            ],
            "widgetName":"TemperatureSensor",
            "uiClass":"TemperatureSensor",
            "qualifiedName":"io:TemperatureIOSystemSensor",
            "type":"SENSOR"
         },
         "states":[
            {
               "name":"core:StatusState",
               "type":3,
               "value":"available"
            },
            {
               "name":"core:RSSILevelState",
               "type":2,
               "value":72.0
            },
            {
               "name":"core:TemperatureState",
               "type":2,
               "value":21.400000000000034
            }
         ],
         "attributes":[
            {
               "name":"core:MinSensedValue",
               "type":1,
               "value":-20
            },
            {
               "name":"core:MaxSensedValue",
               "type":1,
               "value":60
            },
            {
               "name":"core:MeasuredValueType",
               "type":3,
               "value":"core:TemperatureInCelcius"
            },
            {
               "name":"core:PowerSourceType",
               "type":3,
               "value":"battery"
            }
         ],
         "available":true,
         "enabled":true,
         "widget":"TemperatureSensor",
         "type":2,
         "uiClass":"TemperatureSensor"
      },
      {
         "creationTime":1569665062000,
         "lastUpdateTime":1569665062000,
         "label":"Inkomhal",
         "shortcut":false,
         "controllableName":"io:SomfyOccupancyIOSystemSensor",
         "definition":{
            "commands":[

            ],
            "states":[
               {
                  "eventBased":true,
                  "values":[
                     "noPersonInside",
                     "personInside"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:OccupancyState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:RSSILevelState"
               },
               {
                  "values":[
                     "dead",
                     "lowBattery",
                     "maintenanceRequired",
                     "noDefect"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:SensorDefectState"
               },
               {
                  "values":[
                     "available",
                     "unavailable"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:StatusState"
               }
            ],
            "dataProperties":[

            ],
            "widgetName":"OccupancySensor",
            "uiClass":"OccupancySensor",
            "qualifiedName":"io:SomfyOccupancyIOSystemSensor",
            "type":"SENSOR"
         },
         "states":[
            {
               "name":"core:OccupancyState",
               "type":3,
               "value":"noPersonInside"
            },
            {
               "name":"core:StatusState",
               "type":3,
               "value":"available"
            },
            {
               "name":"core:RSSILevelState",
               "type":2,
               "value":98.0
            }
         ],
         "attributes":[
            {
               "name":"core:PowerSourceType",
               "type":3,
               "value":"battery"
            }
         ],
         "available":true,
         "enabled":true,
         "widget":"OccupancySensor",
         "type":2,
         "uiClass":"OccupancySensor"
      },
      {
         "creationTime":1576071099000,
         "lastUpdateTime":1576071099000,
         "label":"Leeslamp",
         "shortcut":false,
         "controllableName":"io:OnOffIOComponent",
         "definition":{
            "commands":[
               {
                  "commandName":"delayedStopIdentify",
                  "nparams":1
               },
               {
                  "commandName":"getName",
                  "nparams":0
               },
               {
                  "commandName":"identify",
                  "nparams":0
               },
               {
                  "commandName":"off",
                  "nparams":0
               },
               {
                  "commandName":"on",
                  "nparams":0
               },
               {
                  "commandName":"onWithTimer",
                  "nparams":1
               },
               {
                  "commandName":"setName",
                  "nparams":1
               },
               {
                  "commandName":"setOnOff",
                  "nparams":1
               },
               {
                  "commandName":"startIdentify",
                  "nparams":0
               },
               {
                  "commandName":"stopIdentify",
                  "nparams":0
               },
               {
                  "commandName":"wink",
                  "nparams":1
               }
            ],
            "states":[
               {
                  "type":"DataState",
                  "qualifiedName":"core:NameState"
               },
               {
                  "values":[
                     "off",
                     "on"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:OnOffState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:PriorityLockTimerState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:RSSILevelState"
               },
               {
                  "values":[
                     "available",
                     "unavailable"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:StatusState"
               },
               {
                  "values":[
                     "comfortLevel1",
                     "comfortLevel2",
                     "comfortLevel3",
                     "comfortLevel4",
                     "environmentProtection",
                     "humanProtection",
                     "userLevel1",
                     "userLevel2"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"io:PriorityLockLevelState"
               },
               {
                  "values":[
                     "LSC",
                     "SAAC",
                     "SFC",
                     "UPS",
                     "externalGateway",
                     "localUser",
                     "myself",
                     "rain",
                     "security",
                     "temperature",
                     "timer",
                     "user",
                     "wind"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"io:PriorityLockOriginatorState"
               }
            ],
            "dataProperties":[
               {
                  "value":"500",
                  "qualifiedName":"core:identifyInterval"
               }
            ],
            "widgetName":"StatefulOnOff",
            "uiClass":"OnOff",
            "qualifiedName":"io:OnOffIOComponent",
            "type":"ACTUATOR"
         },
         "states":[
            {
               "name":"core:NameState",
               "type":3,
               "value":"Leeslamp"
            },
            {
               "name":"core:PriorityLockTimerState",
               "type":1,
               "value":0
            },
            {
               "name":"core:StatusState",
               "type":3,
               "value":"available"
            },
            {
               "name":"core:RSSILevelState",
               "type":2,
               "value":98.0
            },
            {
               "name":"core:OnOffState",
               "type":3,
               "value":"off"
            }
         ],
         "attributes":[

         ],
         "available":true,
         "enabled":true,
         "widget":"StatefulOnOff",
         "type":1,
         "uiClass":"OnOff"
      },
      {
         "creationTime":1569663828000,
         "lastUpdateTime":1569663828000,
         "label":"TV aan/uit",
         "shortcut":false,
         "controllableName":"io:OnOffIOComponent",
         "definition":{
            "commands":[
               {
                  "commandName":"delayedStopIdentify",
                  "nparams":1
               },
               {
                  "commandName":"getName",
                  "nparams":0
               },
               {
                  "commandName":"identify",
                  "nparams":0
               },
               {
                  "commandName":"off",
                  "nparams":0
               },
               {
                  "commandName":"on",
                  "nparams":0
               },
               {
                  "commandName":"onWithTimer",
                  "nparams":1
               },
               {
                  "commandName":"setName",
                  "nparams":1
               },
               {
                  "commandName":"setOnOff",
                  "nparams":1
               },
               {
                  "commandName":"startIdentify",
                  "nparams":0
               },
               {
                  "commandName":"stopIdentify",
                  "nparams":0
               },
               {
                  "commandName":"wink",
                  "nparams":1
               }
            ],
            "states":[
               {
                  "type":"DataState",
                  "qualifiedName":"core:NameState"
               },
               {
                  "values":[
                     "off",
                     "on"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:OnOffState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:PriorityLockTimerState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:RSSILevelState"
               },
               {
                  "values":[
                     "available",
                     "unavailable"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:StatusState"
               },
               {
                  "values":[
                     "comfortLevel1",
                     "comfortLevel2",
                     "comfortLevel3",
                     "comfortLevel4",
                     "environmentProtection",
                     "humanProtection",
                     "userLevel1",
                     "userLevel2"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"io:PriorityLockLevelState"
               },
               {
                  "values":[
                     "LSC",
                     "SAAC",
                     "SFC",
                     "UPS",
                     "externalGateway",
                     "localUser",
                     "myself",
                     "rain",
                     "security",
                     "temperature",
                     "timer",
                     "user",
                     "wind"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"io:PriorityLockOriginatorState"
               }
            ],
            "dataProperties":[
               {
                  "value":"500",
                  "qualifiedName":"core:identifyInterval"
               }
            ],
            "widgetName":"StatefulOnOff",
            "uiClass":"OnOff",
            "qualifiedName":"io:OnOffIOComponent",
            "type":"ACTUATOR"
         },
         "states":[
            {
               "name":"core:NameState",
               "type":3,
               "value":"TV aan/uit"
            },
            {
               "name":"core:PriorityLockTimerState",
               "type":1,
               "value":0
            },
            {
               "name":"core:StatusState",
               "type":3,
               "value":"available"
            },
            {
               "name":"core:RSSILevelState",
               "type":2,
               "value":100.0
            },
            {
               "name":"core:OnOffState",
               "type":3,
               "value":"on"
            }
         ],
         "attributes":[

         ],
         "available":true,
         "enabled":true,
         "widget":"StatefulOnOff",
         "type":1,
         "uiClass":"OnOff"
      },
      {
         "creationTime":1582270976000,
         "lastUpdateTime":1582270976000,
         "label":"Zonwering",
         "shortcut":false,
         "controllableName":"io:HorizontalAwningIOComponent",
         "definition":{
            "commands":[
               {
                  "commandName":"close",
                  "nparams":0
               },
               {
                  "commandName":"delayedStopIdentify",
                  "nparams":1
               },
               {
                  "commandName":"deploy",
                  "nparams":0
               },
               {
                  "commandName":"down",
                  "nparams":0
               },
               {
                  "commandName":"getName",
                  "nparams":0
               },
               {
                  "commandName":"identify",
                  "nparams":0
               },
               {
                  "commandName":"my",
                  "nparams":0
               },
               {
                  "commandName":"open",
                  "nparams":0
               },
               {
                  "commandName":"refreshMemorized1Position",
                  "nparams":0
               },
               {
                  "commandName":"setClosure",
                  "nparams":1
               },
               {
                  "commandName":"setDeployment",
                  "nparams":1
               },
               {
                  "commandName":"setMemorized1Position",
                  "nparams":1
               },
               {
                  "commandName":"setName",
                  "nparams":1
               },
               {
                  "commandName":"setPosition",
                  "nparams":1
               },
               {
                  "commandName":"setSecuredPosition",
                  "nparams":1
               },
               {
                  "commandName":"startIdentify",
                  "nparams":0
               },
               {
                  "commandName":"stop",
                  "nparams":0
               },
               {
                  "commandName":"stopIdentify",
                  "nparams":0
               },
               {
                  "commandName":"undeploy",
                  "nparams":0
               },
               {
                  "commandName":"up",
                  "nparams":0
               },
               {
                  "commandName":"wink",
                  "nparams":1
               }
            ],
            "states":[
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:DeploymentState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:Memorized1PositionState"
               },
               {
                  "type":"DataState",
                  "qualifiedName":"core:NameState"
               },
               {
                  "values":[
                     "closed",
                     "open"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:OpenClosedState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:PriorityLockTimerState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:RSSILevelState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:SecuredPositionState"
               },
               {
                  "values":[
                     "available",
                     "unavailable"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:StatusState"
               },
               {
                  "values":[
                     "comfortLevel1",
                     "comfortLevel2",
                     "comfortLevel3",
                     "comfortLevel4",
                     "environmentProtection",
                     "humanProtection",
                     "userLevel1",
                     "userLevel2"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"io:PriorityLockLevelState"
               },
               {
                  "values":[
                     "LSC",
                     "SAAC",
                     "SFC",
                     "UPS",
                     "externalGateway",
                     "localUser",
                     "myself",
                     "rain",
                     "security",
                     "temperature",
                     "timer",
                     "user",
                     "wind"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"io:PriorityLockOriginatorState"
               }
            ],
            "dataProperties":[
               {
                  "value":"500",
                  "qualifiedName":"core:identifyInterval"
               }
            ],
            "widgetName":"PositionableHorizontalAwning",
            "uiClass":"Awning",
            "qualifiedName":"io:HorizontalAwningIOComponent",
            "type":"ACTUATOR"
         },
         "states":[
            {
               "name":"core:NameState",
               "type":3,
               "value":"Zonwering"
            },
            {
               "name":"core:PriorityLockTimerState",
               "type":1,
               "value":0
            },
            {
               "name":"core:StatusState",
               "type":3,
               "value":"available"
            },
            {
               "name":"core:RSSILevelState",
               "type":2,
               "value":86.0
            },
            {
               "name":"core:DeploymentState",
               "type":1,
               "value":100
            },
            {
               "name":"core:OpenClosedState",
               "type":3,
               "value":"open"
            }
         ],
         "attributes":[

         ],
         "available":true,
         "enabled":true,
         "widget":"PositionableHorizontalAwning",
         "type":1,
         "uiClass":"Awning"
      },
      {
         "creationTime":1569667021000,
         "lastUpdateTime":1569667021000,
         "label":"Schuifraam",
         "shortcut":false,
         "controllableName":"rtds:RTDSContactSensor",
         "definition":{
            "commands":[

            ],
            "states":[
               {
                  "values":[
                     "closed",
                     "open"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:ContactState"
               },
               {
                  "values":[
                     "dead",
                     "lowBattery",
                     "maintenanceRequired",
                     "noDefect"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:SensorDefectState"
               }
            ],
            "dataProperties":[

            ],
            "widgetName":"ContactSensor",
            "uiClass":"ContactSensor",
            "qualifiedName":"rtds:RTDSContactSensor",
            "type":"SENSOR"
         },
         "states":[
            {
               "name":"core:ContactState",
               "type":3,
               "value":"closed"
            }
         ],
         "attributes":[
            {
               "name":"core:PowerSourceType",
               "type":3,
               "value":"battery"
            }
         ],
         "available":true,
         "enabled":true,
         "widget":"ContactSensor",
         "type":2,
         "uiClass":"ContactSensor"
      },
      {
         "creationTime":1569663095000,
         "lastUpdateTime":1569663095000,
         "label":"Slaapkamer 3.2",
         "shortcut":false,
         "controllableName":"rts:RollerShutterRTSComponent",
         "definition":{
            "commands":[
               {
                  "commandName":"close",
                  "nparams":0
               },
               {
                  "commandName":"down",
                  "nparams":0
               },
               {
                  "commandName":"identify",
                  "nparams":0
               },
               {
                  "commandName":"my",
                  "nparams":0
               },
               {
                  "commandName":"open",
                  "nparams":0
               },
               {
                  "commandName":"rest",
                  "nparams":0
               },
               {
                  "commandName":"stop",
                  "nparams":0
               },
               {
                  "commandName":"test",
                  "nparams":0
               },
               {
                  "commandName":"up",
                  "nparams":0
               }
            ],
            "states":[

            ],
            "dataProperties":[
               {
                  "value":"0",
                  "qualifiedName":"core:identifyInterval"
               }
            ],
            "widgetName":"UpDownRollerShutter",
            "uiClass":"RollerShutter",
            "qualifiedName":"rts:RollerShutterRTSComponent",
            "type":"ACTUATOR"
         },
         "attributes":[
            {
               "name":"rts:diy",
               "type":6,
               "value":true
            }
         ],
         "available":true,
         "enabled":true,
         "widget":"UpDownRollerShutter",
         "type":1,
         "uiClass":"RollerShutter"
      },
      {
         "creationTime":1569662970000,
         "lastUpdateTime":1569662970000,
         "label":"Slaapkamer 3.1",
         "shortcut":false,
         "controllableName":"rts:RollerShutterRTSComponent",
         "definition":{
            "commands":[
               {
                  "commandName":"close",
                  "nparams":0
               },
               {
                  "commandName":"down",
                  "nparams":0
               },
               {
                  "commandName":"identify",
                  "nparams":0
               },
               {
                  "commandName":"my",
                  "nparams":0
               },
               {
                  "commandName":"open",
                  "nparams":0
               },
               {
                  "commandName":"rest",
                  "nparams":0
               },
               {
                  "commandName":"stop",
                  "nparams":0
               },
               {
                  "commandName":"test",
                  "nparams":0
               },
               {
                  "commandName":"up",
                  "nparams":0
               }
            ],
            "states":[

            ],
            "dataProperties":[
               {
                  "value":"0",
                  "qualifiedName":"core:identifyInterval"
               }
            ],
            "widgetName":"UpDownRollerShutter",
            "uiClass":"RollerShutter",
            "qualifiedName":"rts:RollerShutterRTSComponent",
            "type":"ACTUATOR"
         },
         "attributes":[
            {
               "name":"rts:diy",
               "type":6,
               "value":true
            }
         ],
         "available":true,
         "enabled":true,
         "widget":"UpDownRollerShutter",
         "type":1,
         "uiClass":"RollerShutter"
      },
      {
         "creationTime":1569662876000,
         "lastUpdateTime":1569662876000,
         "label":"Slaapkamer 2",
         "shortcut":false,
         "controllableName":"rts:RollerShutterRTSComponent",
         "definition":{
            "commands":[
               {
                  "commandName":"close",
                  "nparams":0
               },
               {
                  "commandName":"down",
                  "nparams":0
               },
               {
                  "commandName":"identify",
                  "nparams":0
               },
               {
                  "commandName":"my",
                  "nparams":0
               },
               {
                  "commandName":"open",
                  "nparams":0
               },
               {
                  "commandName":"rest",
                  "nparams":0
               },
               {
                  "commandName":"stop",
                  "nparams":0
               },
               {
                  "commandName":"test",
                  "nparams":0
               },
               {
                  "commandName":"up",
                  "nparams":0
               }
            ],
            "states":[

            ],
            "dataProperties":[
               {
                  "value":"0",
                  "qualifiedName":"core:identifyInterval"
               }
            ],
            "widgetName":"UpDownRollerShutter",
            "uiClass":"RollerShutter",
            "qualifiedName":"rts:RollerShutterRTSComponent",
            "type":"ACTUATOR"
         },
         "attributes":[
            {
               "name":"rts:diy",
               "type":6,
               "value":true
            }
         ],
         "available":true,
         "enabled":true,
         "widget":"UpDownRollerShutter",
         "type":1,
         "uiClass":"RollerShutter"
      },
      {
         "creationTime":1569662813000,
         "lastUpdateTime":1569662813000,
         "label":"Slaapkamer 1",
         "shortcut":false,
         "controllableName":"rts:RollerShutterRTSComponent",
         "definition":{
            "commands":[
               {
                  "commandName":"close",
                  "nparams":0
               },
               {
                  "commandName":"down",
                  "nparams":0
               },
               {
                  "commandName":"identify",
                  "nparams":0
               },
               {
                  "commandName":"my",
                  "nparams":0
               },
               {
                  "commandName":"open",
                  "nparams":0
               },
               {
                  "commandName":"rest",
                  "nparams":0
               },
               {
                  "commandName":"stop",
                  "nparams":0
               },
               {
                  "commandName":"test",
                  "nparams":0
               },
               {
                  "commandName":"up",
                  "nparams":0
               }
            ],
            "states":[

            ],
            "dataProperties":[
               {
                  "value":"0",
                  "qualifiedName":"core:identifyInterval"
               }
            ],
            "widgetName":"UpDownRollerShutter",
            "uiClass":"RollerShutter",
            "qualifiedName":"rts:RollerShutterRTSComponent",
            "type":"ACTUATOR"
         },
         "attributes":[
            {
               "name":"rts:diy",
               "type":6,
               "value":true
            }
         ],
         "available":true,
         "enabled":true,
         "widget":"UpDownRollerShutter",
         "type":1,
         "uiClass":"RollerShutter"
      }
   ]
iMicknl commented 4 years ago

Thanks @Glenn1986! I am not sure how a sirene should be mapped in Home Assistant, how would you like to see it? Controllable as a switch (on/off) or something else?

Which other devices are currently not supported (or not working as expected). Could you please create separate issues per unsupported device, this will allow us to easier track unsupported devices and work on them one by one.

Glenn1986 commented 4 years ago

I think a switch would be fine. Oke I will make a sperate issue for the io blind. The other devices work fine at the moment.

iMicknl commented 4 years ago

Basic support has been added in https://github.com/iMicknl/ha-tahoma/pull/84, could you give it a try?

In order to add full support, support in Home Assistant for sirens would be required. https://github.com/home-assistant/architecture/issues/375

Glenn1986 commented 4 years ago

Oké I will try to test! Do I have to manually update the files of the hacs TaHoma component? It’s my first time 🙈

iMicknl commented 4 years ago

https://github.com/iMicknl/ha-tahoma/tree/refactor_sensor, press the green button and choose 'Download'. Then make sure you overwrite the tahoma folder in custom_components with the tahoma folder you did download.

I think siren off should work, but I am not sure if siren on will work. It did require multiple params, but I couldn't find them..

Glenn1986 commented 4 years ago

I installed your new version but has errors. All my switches didn’t work anymore. I will post the errors later.

Glenn1986 commented 4 years ago
2020-06-24 09:24:56 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up tahoma platform for binary_sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 292, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 381, in _async_add_entity
    original_icon=entity.icon,
  File "/config/custom_components/tahoma/binary_sensor.py", line 70, in icon
    if self.device_class() == DEVICE_CLASS_RAIN:
TypeError: 'str' object is not callable
2020-06-24 09:24:56 ERROR (MainThread) [homeassistant.components.switch] Error while setting up tahoma platform for switch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 292, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 381, in _async_add_entity
    original_icon=entity.icon,
  File "/config/custom_components/tahoma/switch.py", line 61, in icon
    if self.device_class() == DEVICE_CLASS_SIREN:
TypeError: 'str' object is not callable
vlebourl commented 4 years ago

should be fixed can you redownload the branch and install it?

Glenn1986 commented 4 years ago

Ok now i don't have errors after installation. I find the siren in my entities. But when clicking on the switch he gives an error. I'm trying to capture the error but with no luck at the moment. When i switching off the sirene I don't get an error.

Glenn1986 commented 4 years ago

Kan service switch/turn_on niet aanroepen Maximum number of consecutive retries reached. Error is: {"errorCode":"INCOMPATIBLE_VALUE","error":"ringWithSingleSimpleSequence() : Invalid value for command parameter p1 : expected multi-type value, one of [integer value between 100 and 204600 or string value in (defaultDuration, defaultSoundPattern)] but got no value"}

vlebourl commented 4 years ago

thanks, this helps a lot! I just pushed another fix, happy testing :)

Glenn1986 commented 4 years ago

Now I got the message: Kan service switch/turn_on niet aanroepen Maximum number of consecutive retries reached. Error is: {"errorCode":"RESOURCE_ACCESS_DENIED","error":"Not authenticated"} Never had problems with not authenticated.

vlebourl commented 4 years ago

This has happened to us as well once or twice, but we don't know what causes this at the moment. A restart of HA should fix it.

Glenn1986 commented 4 years ago

ok, i reboot the system. I tried again to switch sirene. Error: Kan service switch/turn_on niet aanroepen Maximum number of consecutive retries reached. Error is: {"errorCode":"INCOMPATIBLE_VALUE","error":"ringWithSingleSimpleSequence() : Invalid value for command parameter p2 : expected integer value between 0 and 100 but got no value"}

vlebourl commented 4 years ago

apparently 4 parameters are required.

"commandName": "ringWithSingleSimpleSequence",
"nparams": 4

would you have an idea of what they are from what you do in the tahoma dashboard for instance?

Glenn1986 commented 4 years ago

I did find something on tahoma siren.js file. I didn't find the params i think. fromAction: { ringWithSingleSimpleSequence: function (p1, p2, p3) { //fixme yet the only solution to tell if low bip or intrusion is the repeat time if (p1 === cons.INTRUSION_COMMAND_PARAMETERS[0] && p2 === cons.INTRUSION_COMMAND_PARAMETERS[1] && p3 === cons.INTRUSION_COMMAND_PARAMETERS[2]) { return { on: true } } else { return { lowBip: true, actionContext: ActionContext.IIT_PROGRAMMATION }

                }

            }
        }
Glenn1986 commented 4 years ago

I think that the itrusion commands are the alarm settings of tahoma. I have total, zone 1, zone 2, deactivated in my settings of tahoma. So I can activate the alarm for zone 1 or 2 or total. That's what i think these params are but can't find it anywhere. So i am not sure.

iMicknl commented 4 years ago

https://github.com/octa22/org.openhab.binding.somfytahoma/issues/6#issuecomment-488663654 More information could also be found here.

vlebourl commented 4 years ago

shall we use those [120000, 75, 2, "memorizedVolume"] as a first try, and see how it goes?

Glenn1986 commented 4 years ago

Good for me. Let me know if I can help testing.

vlebourl commented 4 years ago

just pushed it to branch refactor_sensor happy testing

Glenn1986 commented 4 years ago

I just tested the sirene. Didn't get errors and tested the switch. It worked, but when I wanted to set it off i didn't. But i could not see any errors when set the sirene off. Great work guys! almost there. I also see that a lot of sensors of tahoma has battery level. RSSI:level or something like that. It would be great to also have these information so I can make an automation that notify me when battery is at low level. It's just a sugestion.

vlebourl commented 4 years ago

could you try to use the chrome dev panel as in Mick's link: https://github.com/iMicknl/ha-tahoma/issues/57#issuecomment-649357934 to investigate how the stop command is sent?

Regarding your suggestion, we have a branch to add lots of attributes to our entities.

Note that RSSI:level isn't the battery level, it's the quality of the connection to the box.

Glenn1986 commented 4 years ago

I'm trying to search for the info that you want but I'm not sure what to look for. I did find something from the iosiren.js in chrome on somfy there website. @vlebourl @iMicknl

define("tahoma/view/secureKit/ioSiren", ["require", "dev/log", "core", "app", "./controller", "i18n!./nls/secureKit", "i18n!../../../vendor/somfy/io/siren/nls/siren", "i18n!tahoma/view/product/nls/product", "./view/ioSiren"], function(e) { var t = (e("dev/log")("IOSirenTestView", e), e("core")) , n = e("app") , i = (e("./controller"), e("i18n!./nls/secureKit"), e("i18n!../../../vendor/somfy/io/siren/nls/siren")) , s = e("i18n!tahoma/view/product/nls/product").actionLabel , o = e("./view/ioSiren"); return t.ViewController.extend({ View: o, viewOptions: { type: t.NavigationController.ViewType.POPUP, canClose: !1, canBackgroundClose: !1 }, initialize: function(e) { this.device = e.device, this.testInProgress = !1 }, loadData: function() { return t.Q.resolve() }, testSiren: function() { return n.api.execution.apply({ label: s.replace("${device}", this.device.label).replace("${action}", i.commands.test), shortcut: !1, internal: !1, actions: [{ deviceURL: this.device.deviceURL, commands: [{ name: "ringWithSingleSimpleSequence", parameters: [2e3, 50, 2, "memorizedVolume"] }] }] }).then(function(e) { return this.execid = e, n.execution.wait(e) } .bind(this)) }, stopRinging: function() { n.api.action.cancelExecution(this.execid) }, destroy: function() {} }) });

iMicknl commented 4 years ago

@Glenn1986 could you try https://github.com/iMicknl/ha-tahoma/tree/master? This should also allow you to turn it off. 👍

Glenn1986 commented 4 years ago

Hi Mick, I finally can test the alarm. I installed last version and the alarm works fine. On and off command works! Nice work, now I can build my own alarm while I'm waiting for the somfy intrusion to be implementing. Thanks!

iMicknl commented 4 years ago

@Glenn1986 are you in need for having internal:TSKAlarmComponent supported as well? For me, the alarm part in Somfy is disabled, so I am not sure if that is your alarm controller.

If so; could you open a new issue for internal:TSKAlarmComponent with some more information of your usecase.