Update switch.broadlink.markdown (#3212)

Have changed "type" from Optional, to "Required for some models". I don't know if this is non-standard for documentation...

Regardless, my SP3 would not work without this field configured.  I spent a lot of time reading various threads on what to troubleshoot.

This post: https://community.home-assistant.io/t/broadlink-rm-pro-and-a1-sensor/3678/305 also implied the friendly_name is required but I found this not to be the case, and instead "Broadlink Switch" was simply displayed.

After much googling and trying various things, I believe the following two pip packages were required for broadlink.py to work:

sudo pip3 install pycrypto voluptuous

Should I also add this to the documentation?

Thanks,

Matt
This commit is contained in:
mattie47 2017-08-21 07:10:14 +12:00 committed by Fabian Affolter
parent cd22bbce47
commit fb6283fff1
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -31,7 +31,7 @@ Configuration variables:
- **mac** (*Required*): Device MAC address.
- **timeout** (*Optional*): Timeout in seconds for the connection to the device.
- **friendly_name** (*Optional*): The name used to display the switch in the frontend.
- **type** (*Optional*): Switch type. Choose one from: `rm`, `rm2`, `rm_mini`, `rm_pro_phicomm`, `rm2_home_plus`, `rm2_home_plus_gdt`, `rm2_pro_plus`, `rm2_pro_plus2`, `rm2_pro_plus_bl`, `rm_mini_shate`, `sp1`, `sp2`, `honeywell_sp2`, `sp3`, `spmini2` or `spminiplus`.
- **type** (*Required for some models*): Switch type. Choose one from: `rm`, `rm2`, `rm_mini`, `rm_pro_phicomm`, `rm2_home_plus`, `rm2_home_plus_gdt`, `rm2_pro_plus`, `rm2_pro_plus2`, `rm2_pro_plus_bl`, `rm_mini_shate`, `sp1`, `sp2`, `honeywell_sp2`, `sp3`, `spmini2` or `spminiplus`.
- **switches** (*Optional*): The array that contains all switches.
- **identifier** (*Required*): Name of the command switch as slug. Multiple entries are possible.
- **friendly_name** (*Optional*): The name used to display the switch in the frontend.