You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/sensor.broadlink.markdown
+31-13Lines changed: 31 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -13,16 +13,27 @@ ha_release: 0.35
13
13
---
14
14
15
15
16
-
The `broadlink` sensor platform let you monitor data from an RM2 and A1 E-air.
17
-
There is currently no support for the cloud API.
16
+
The `broadlink` sensor platform let you monitor data from an RM2 and A1 E-air. There is currently no support for the cloud API.
18
17
18
+
To enable it, add the following lines to your `configuration.yaml`:
19
+
20
+
```yaml
21
+
# Example configuration.yaml entry
22
+
switch:
23
+
- platform: broadlink
24
+
host: IP_ADDRESS
25
+
mac: 'MAC_ADDRESS'
26
+
monitored_conditions:
27
+
- 'temperature'
28
+
```
19
29
20
30
Configuration options:
21
-
-**name** (*Optional*): Default BL. Sensor name
22
-
-**update_interval** (*Optional*): Default 300. Time in seconds to fetch data from sensors
31
+
23
32
- **host** (*Required*): The hostname/IP address to connect to.
24
33
- **mac** (*Required*): Device mac address.
25
-
-**timeout** (*Optional*): Timeout in seconds for the connection to the device
34
+
- **name** (*Optional*): Default BL. Sensor name
35
+
- **update_interval** (*Optional*): Time in seconds to fetch data from sensors. Default 300.
36
+
- **timeout** (*Optional*): Timeout in seconds for the connection to the device.
26
37
- **monitored_conditions** array (*Required*): States to monitor.
27
38
- 'temperature'
28
39
- 'humidity'
@@ -33,9 +44,10 @@ Configuration options:
33
44
To set it up, add the following information to your `configuration.yaml` file:
34
45
35
46
Obtain sensor data from an A1:
47
+
36
48
```yaml
37
49
sensor:
38
-
platform: broadlink
50
+
- platform: broadlink
39
51
update_interval: 60
40
52
host: IP_ADDRESS
41
53
mac: 'MAC_ADDRESS'
@@ -48,21 +60,27 @@ sensor:
48
60
```
49
61
50
62
Obtain temperature data from an RM2:
63
+
51
64
```yaml
52
65
sensor:
53
-
platform: broadlink
66
+
- platform: broadlink
54
67
update_interval: 60
55
68
host: IP_ADDRESS
56
69
mac: 'MAC_ADDRESS'
57
70
monitored_conditions:
58
71
- temperature
59
72
```
60
73
61
-
**note**: The pycrypto library needs to be available on your platform.
62
-
on a typical windows sysytem `pip install pycrypto` will fail, as a compiler needs to be installed.
74
+
### {% linkable_title Microsoft Windows installation %}
63
75
64
-
The quickest way around this is to use a pre-built binary, e.g. from here:
65
-
https://github.com/sfbahr/PyCrypto-Wheels
76
+
<p class='note'>
77
+
The pycrypto library needs to be available on your platform. On a typical windows sysytem `pip install pycrypto` will fail, as a compiler needs to be installed first.
78
+
</p>
66
79
67
-
be sure to get the correct 64 or 32-bit binary for your system, the full commandline will look someting like this (64bit):
Copy file name to clipboardExpand all lines: source/_components/switch.broadlink.markdown
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ switch:
29
29
```
30
30
31
31
Configuration variables:
32
+
32
33
- **host** (*Required*): The hostname/IP address to connect to.
33
34
- **mac** (*Required*): Device mac address.
34
35
- **timeout** (*Optional*): Timeout in seconds for the connection to the device
@@ -39,7 +40,6 @@ Configuration variables:
39
40
- **command_off** (*Required*): Base64 encoded packet from RM device to take for off.
40
41
41
42
42
-
43
43
How to obtain IR/RF packets?
44
44
45
45
Choose Call Service from the Developer Tools. Choose the service broadlink/learn_command from the list of Available services: and hit CALL SERVICE. Press the button on your remote with in 20 seconds. The packet will be printed in the log and as a persistent notification.
0 commit comments