elric91 / homeassistant_zigate

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

Components documentation needed. #14

Open ethologus opened 6 years ago

ethologus commented 6 years ago

It would be nice if elric91 would be able to provide remaining parts of documentation on how to setup different components that are not mentioned in the readme including:

lolorc commented 6 years ago

this is probably not the place to ask for help. (see https://community.home-assistant.io/t/new-custom-component-zigate/36820/ ) But there's a very good point in renaming your github issue as "Please provide more documentation and examples on switch/sensor definitions and automation examples with sensor/switch"

My switch definition for an osram plug is the same but I don't use the "default_state: 'state'" Looking at http://zigate.fr/xiaomi-power-socket-prise-pilotee-clusters/ it looks like your using the correct endpoint.

ethologus commented 6 years ago

Hi, lolorc! Can you share your Osram plug configuration? Thank you!

lolorc commented 6 years ago

it's as simple as

switch:
  - platform: zigate
    name: 'Switch01'
    address: b01701

and in my automation I use this action for instance

     action:
      - service: switch.toggle
        entity_id: switch.Switch01
ethologus commented 6 years ago

The component appears on my Home Assistant components list. However, whenever I try to change its state from "off" to "on" nothing happens.

ISO-B commented 6 years ago

I added example for lights. Are you using correct address for your plug?

ethologus commented 6 years ago

Thank you! Regarding the address - I have tried to pair my plug with ZiGate again. It does appear among my component list, but it doesn't work when I try to set its state to "on"

Here is screenshot from my Home Assistant: image

elric91 commented 6 years ago

Wiki page added with example https://github.com/elric91/homeassistant_zigate/wiki

lolorc commented 6 years ago

any working examples for the aqara cube ?

I've managed to use the aqara switch with

  - platform: zigate 
    name: 'switch_1234' 
    address: 123401
    default_state: 'state'

but It does not change its state when doing multiclicks

elric91 commented 6 years ago

Movements are implemented in pyzigate but not yet send external events (if you want to have a look, see attributes_helpers.py for clusters 000c & 0012, they miss the set_device_property) I should receive mine in a few days so I can check how to properly link the events to HA (put in the todo list : https://github.com/elric91/ZiGate/issues/15 )

ethologus commented 6 years ago

I can confirm that Xiaomi Smart plug is working with following configuration: switch:

elric91 commented 6 years ago

thanks : added in wiki

TheLama1993 commented 6 years ago

I can confirm that the Osram Lightify bulb works with the following configuration:

light: platform: zigate name: 'Televisie’ address: "320c03" light_type: 'dual-white’ default_state: ‘event’

However, RGB function does not work! We'll need more documentation for this. Maybe the rgb functionality is not implemented yet?

ISO-B commented 5 years ago

I can confirm that RGB function is not implemented yet. I will take look on this when my rgb bulb arrives.