1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-13 03:00:11 +01:00

Update README.md

Add new models and fix syntax errors in the instructions.
This commit is contained in:
Felipe Martins Diel 2021-01-25 04:17:31 -03:00 committed by Felipe Martins Diel
parent 9a04f68212
commit 82a20dbdda

View File

@ -1,13 +1,21 @@
Python control for Broadlink RM2, RM3 and RM4 series controllers Python control for Broadlink devices
=============================================== ===============================================
A simple Python API for controlling IR/RF controllers from [Broadlink](http://www.ibroadlink.com/rm/). At present, the following devices are currently supported: A simple Python API for controlling Broadlink devices. At present, the following devices are supported:
* RM Pro (referred to as RM2 in the codebase) - Universal remotes: `RM pro`, `RM pro+`, `RM pro plus`, `RM mini 3`, `RM4 pro`, `RM4 mini`, `RM4C mini`, `RM4S`
* A1 sensor platform devices are supported - Smart plugs: `SP1`, `SP2`, `SP mini`, `SP mini+`, `SP3`, `SP3S`, `SP4L`, `SP4M`
* RM3 mini IR blaster - Power strips: `MP1-1K4S`, `MP1-1K3S2U`, `MP2`
* RM4 and RM4C mini blasters - Control box: `SC1`, `SCB1E`, `MCB1`
- SP2/SP3/SP4 smart plugs - Sensors: `A1`
- Alarm kit: `S1C`, `S2KIT`
- Light bulb: `LB1`, `SB800TD`
Other devices with Broadlink DNA:
- Smart plugs: `Ankuoo NEO`, `Ankuoo NEO PRO`, `Efergy Ego`, `BG AHC/U-01`
- Outlet: `BG 800`, `BG 900`
- Curtain motor: `Dooya DT360E-45/20`
- Thermostat: `Hysen HY02B05H`
There is currently no support for the cloud API. There is currently no support for the cloud API.
@ -42,7 +50,7 @@ Using your machine's IP address with `local_ip_address`
``` ```
import broadlink import broadlink
devices = broadlink.discover(timeout=5, local_ip_address=192.168.0.100) devices = broadlink.discover(timeout=5, local_ip_address='192.168.0.100')
``` ```
Using your subnet's broadcast address with `discover_ip_address` Using your subnet's broadcast address with `discover_ip_address`
@ -50,7 +58,7 @@ Using your subnet's broadcast address with `discover_ip_address`
``` ```
import broadlink import broadlink
devices = broadlink.discover(timeout=5, discover_ip_address=192.168.0.255) devices = broadlink.discover(timeout=5, discover_ip_address='192.168.0.255')
``` ```
Obtain the authentication key required for further communication: Obtain the authentication key required for further communication:
@ -145,4 +153,4 @@ devices[0].set_state(blue=255)
devices[0].set_state(red=0) devices[0].set_state(red=0)
devices[0].set_state(green=128) devices[0].set_state(green=128)
devices[0].set_state(bulb_colormode=1) devices[0].set_state(bulb_colormode=1)
``` ```