elric91 / homeassistant_zigate

Custom components for Home Assistant
MIT License
22 stars 5 forks source link

Osram Smart+ Switch #2

Open bderenzo opened 6 years ago

bderenzo commented 6 years ago

Hi,

I tried to add an Osram Smart+ Switch but it don't seem to work. The pairing works, I then add it to the UI. But the switch does nothing when toogle, moreover nothing appears in the log file.

Here the debug log when pairing the device :

[custom_components.zigate.zigate2hass] ZIGATE SIGNAL :
[custom_components.zigate.zigate2hass] - Signal   : zgt_signal_update_9c34
[custom_components.zigate.zigate2hass] - Property : MAC
[custom_components.zigate.zigate2hass] - Data     : 84182600000d9ede
[zigate] RESPONSE 004d : Device Announce
[zigate]   * From address   : b'9c34'
[zigate]   * MAC address    : b'84182600000d9ede'
[zigate]   * MAC capability : b'\x8e]'
[zigate]   # encoded : b'0102104d0210021ccd9c3484182602100210021d9ede8e5d03'
[zigate]   # decoded : 0100 4D 00 0C CD 9C 34 84 18 26 00 00 0D 9E DE 8E 5D03
[zigate]   (@timestamp : 21:56:24)
[zigate] --------------------------------------
[zigate] RESPONSE 8701: Route Discovery Confirmation
[zigate]   - Sequence       : b'00'
[zigate]   - Status         : b'00'
[zigate]   - Network status : b'5d'
[zigate]   - Message data   : b'00005d'
[zigate]   # encoded : b'0187021102100213d8021002105d03'
[zigate]   # decoded : 0187 01 00 03

Here is my configuration.yaml :

switch:
  - platform: zigate
    name: 'Osram'
    address: 9c3403
    default_state: 'state'
ISO-B commented 6 years ago

So pressing physical buttons from switch doesn't show anything to log? I have Ikea Trådfri remote controller and pressing buttons from it doesn't add anything to log.

Could you try to send following raw_commands to zigate? We could get bit more information from device: command: '0042', data: '9C34' Node Descriptor (lots of device info) command: '0043', data: '9C3401' Cluster List from endpoint 01 (Common) command: '0044', data: '9C34' Power info command: '0045', data: '9C34' Endpoint listing

If your device address has changed change it to data parameters.

elric91 commented 6 years ago

For reference, 1st infos available here : http://zigate.fr/osram-lightify-prise-pilotee/ The commands for switches are not implemented yet (but will 😃 )

lolorc commented 6 years ago

I managed to control mine yesterday using raw commands { "cmd":"0092", "data":"02XXXX010202" } I don't know if the plug is supposed to report its status when its button is locally actionned tho.

ISO-B commented 6 years ago

Is it plug or switch? If I am right @bderenzo has switch like https://www.osram-lamps.com/ecatalog/smart-home/smart-home-components/smart-switch/index.jsp .

If your plug doesn't automatically report state change you could try to configure it to do so. I haven't tested it but command 0x0120 could work.

bderenzo commented 6 years ago

@ISO-B @elric91 Here is the result from the different request : osram_switch_result I confirm the product is the following : http://zigate.fr/osram-lightify-prise-pilotee/

bderenzo commented 6 years ago

@ISO-B or @lolorc I tried to manage the plug but doesn't manage. I trier différent command, none of them seems to work. Any Idea ?

lolorc commented 6 years ago

i own two of them, with latest HASS_zigate they work straightaway with config as simple as

platform: zigate
    name: 'prise_01'
    address: XXXX03

but they don't report their status when you manually action them. (I haven't been courageous enough to read about attribute reporting)