octa22 / org.openhab.binding.somfytahoma

Somfy Tahoma binding for OpenHAB v1.x
7 stars 0 forks source link

Detected a new unsupported device: Siren #6

Open override1978 opened 5 years ago

override1978 commented 5 years ago

can you include in the binding the new device Siren? https://shop.somfy.it/sirena-da-interno-io-per-tahoma.html

Below the information discovered...

Detected a new unsupported device: Siren Supported commands: { delayedStopIdentify (params: 1); getName (params: 0); identify (params: 0); off (params: 0); setName (params: 1); startIdentify (params: 0); stopIdentify (params: 0); wink (params: 1); ringWithDoubleSimpleSequence (params: 8); ringWithSingleSimpleSequence (params: 4); ringWithThreeSimpleSequence (params: 12); setMemorizedSimpleVolume (params: 1); }

Device states: {name='core:NameState', type=3, value=Sirena INT} {name='core:PriorityLockTimerState', type=1, value=0.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} {name='io:MemorizedSimpleVolumeState', type=3, value=highest}

Best Maurizio

octa22 commented 5 years ago

I'd love to, but I need your help to find out what are the options/or parameters of 1) io:MemorizedSimpleVolumeState I see value "highest", can you figure out, what are the other volume states of siren? 2) ringWithSingleSimpleSequence it has 4 parameters, so it might be usable in OH2 by proper channel. Can you provide me, what parameters it might have?

The best way might be debugging the communication in Chrome (F12 key) while working in Tahomalink.com portal... If no additional info is provided, I can add support with three channels only ON/OFF channel and readonly channels for displaying VolumeState and BatteryState

Thanks Ondrej

override1978 commented 5 years ago

Hi, I trying to investigate with the developer toolbar and I discovered some information:

1) io:MemorizedSimpleVolumeState There are two values:

2) ringWithSingleSimpleSequence Here it is more complicated, in the JSON I only see this structure: actions: [{ deviceURL: e.deviceURL, commands: [{ name: "ringWithSingleSimpleSequence", parameters: [2e3, 50, 2, i] }] }], If I try to manage the inclusione of the Siren in the Alarm protection (Total, Partial) I see these JSON: { label: "Attivare sirena",
commands: armedBip: true off: [] ringWithSingleSimpleSequence: [120000, 75, 2, "memorizedVolume"] }

3) BatteryState There are four value:

3) StatusState There are four value:

Let me know if you need any other support.

Maurizio

octa22 commented 5 years ago

Hi, thank you very much. Do you have any idea what the ringWithSingleSimpleSequence parameters stand for? [120000, 75, 2, "memorizedVolume"]

I guess the last one might be constant, so I am curious, what the first three might mean... Thanks. Ondrej