homebridge-tasmota 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/DEVICES.md +124 -36
- package/README.md +8 -0
- package/config.schema.json +7 -2
- package/dist/TasmotaService.js +1 -1
- package/dist/TasmotaService.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/CustomCharacteristics.d.ts +2 -2
- package/dist/lib/CustomCharacteristics.d.ts.map +1 -1
- package/dist/lib/CustomCharacteristics.js +20 -20
- package/dist/lib/CustomCharacteristics.js.map +1 -1
- package/dist/lib/Mqtt.js +4 -4
- package/dist/lib/Mqtt.js.map +1 -1
- package/dist/platform.js +2 -2
- package/dist/platform.js.map +1 -1
- package/dist/tasmotaBinarySensorService.js +2 -2
- package/dist/tasmotaBinarySensorService.js.map +1 -1
- package/dist/tasmotaFanService.js +1 -1
- package/dist/tasmotaFanService.js.map +1 -1
- package/dist/tasmotaGarageService.js +1 -1
- package/dist/tasmotaGarageService.js.map +1 -1
- package/dist/tasmotaLightService.js +2 -2
- package/dist/tasmotaLightService.js.map +1 -1
- package/dist/tasmotaSensorService.d.ts.map +1 -1
- package/dist/tasmotaSensorService.js +9 -6
- package/dist/tasmotaSensorService.js.map +1 -1
- package/dist/tasmotaSwitchService.d.ts.map +1 -1
- package/dist/tasmotaSwitchService.js +17 -3
- package/dist/tasmotaSwitchService.js.map +1 -1
- package/gh-md-toc +256 -0
- package/package.json +7 -5
- package/publish.sh +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/).
|
|
4
4
|
|
|
5
|
+
## 0.1.4 (2021-06-07)
|
|
6
|
+
|
|
7
|
+
## [Version 0.1.3](https://github.com/northernman54/homebridge-tasmota/compare/v0.1.3...v0.1.4)
|
|
8
|
+
|
|
9
|
+
#### Changes
|
|
10
|
+
|
|
11
|
+
- Added TOC to DEVICES.md
|
|
12
|
+
|
|
5
13
|
## 0.1.3 (2021-04-01)
|
|
6
14
|
|
|
7
15
|
## [Version 0.1.3](https://github.com/northernman54/homebridge-tasmota/compare/v0.1.0...v0.1.3)
|
package/DEVICES.md
CHANGED
|
@@ -1,13 +1,58 @@
|
|
|
1
|
-
|
|
1
|
+
<H1>Sample Device Configurations ( My personal collection )</H1>
|
|
2
|
+
|
|
3
|
+
<!--ts-->
|
|
4
|
+
* [Sample Device Configurations ( My personal collection )]()
|
|
5
|
+
* [My standard config after setting name and device configuration ]()
|
|
6
|
+
* [Tasmota Configuration]()
|
|
7
|
+
* [Sonoff IFAN03]()
|
|
8
|
+
* [Tasmota Configuration]()
|
|
9
|
+
* [configuration override of discovery object to create a FAN ( post version 0.1.0 )]()
|
|
10
|
+
* [configuration override of discovery object to create a FAN ( pre version 0.1.0 )]()
|
|
11
|
+
* [Slave a FEIT Wifi Dimmer Wall Switch to an iFan as a light switch]()
|
|
12
|
+
* [BME280 Temperature Sensor - <a href="docs/MCUIOT.md">MCUIOT</a>]()
|
|
13
|
+
* [DHT11 Temperature Sensor - <a href="docs/MCUIOT.md">MCUIOT</a>]()
|
|
14
|
+
* [Water Leak Sensor with On/Off control]()
|
|
15
|
+
* [LEAK Tasmota configuration - <a href="docs/MCUIOT.md#dht-yl">DHT11</a>]()
|
|
16
|
+
* [Leak Tasmota configuration - <a href="docs/MCUIOT.md#dht-yl">BME280</a>]()
|
|
17
|
+
* [Motion BME280 Temperature Sensor]()
|
|
18
|
+
* [PIR Motion BME280 Temperature Sensor BH1750 Lux Illuminance Sensor]()
|
|
19
|
+
* [ZMAi-90 Current Sensor Switch]()
|
|
20
|
+
* [MCULED Device with RGB W Strip]()
|
|
21
|
+
* [MCULED Device with RGB W Strip - Version 2 ( Basement )]()
|
|
22
|
+
* [MCULED Device with RGB W Strip - Version 2 ( Cottage Sink )]()
|
|
23
|
+
* [Tuya Dimmer Module as a FAN]()
|
|
24
|
+
* [Trailer Relay Board]()
|
|
25
|
+
* [Gowfeel EN71 Water Valve]()
|
|
26
|
+
* [Homebrew Garage Door Opener]()
|
|
27
|
+
* [CE SMART Wifi Dimmer]()
|
|
28
|
+
* [FEIT Wifi Dimmer]()
|
|
29
|
+
* [Turn off after 30 minutes]()
|
|
30
|
+
* [Hampton Bay Fan/Light RF Remote Control ( 303.9 Mhz )]()
|
|
31
|
+
* [Valor Fireplace Remote ( 315 Mhz )]()
|
|
32
|
+
* [Treatlife DS03 Fan Controller and Light Dimmer]()
|
|
33
|
+
* [OpenMQTTGateway devices]()
|
|
34
|
+
* [Hampton Bay Light]()
|
|
35
|
+
* [Hampton Bay FAN]()
|
|
36
|
+
* [openMQTTGateway / PiLight temperature sensor]()
|
|
37
|
+
* [Internet Connection WatchDog]()
|
|
38
|
+
* [Version 1 ( Uses node-red to monitor google.com and turn off the plug )]()
|
|
39
|
+
* [Version 2]()
|
|
40
|
+
|
|
41
|
+
<!-- Added by: sgracey, at: -->
|
|
42
|
+
|
|
43
|
+
<!--te-->
|
|
44
|
+
|
|
45
|
+
# My standard config after setting name and device configuration <!-- omit in toc -->
|
|
46
|
+
|
|
47
|
+
## Tasmota Configuration
|
|
2
48
|
|
|
3
|
-
My standard config after setting name and device configuration
|
|
4
49
|
```
|
|
5
50
|
Backlog MqttHost mqtt.local; topic tasmota_%06X; setoption57 1; setoption19 1
|
|
6
51
|
```
|
|
7
52
|
|
|
8
|
-
|
|
53
|
+
# Sonoff IFAN03
|
|
9
54
|
|
|
10
|
-
|
|
55
|
+
## Tasmota Configuration
|
|
11
56
|
|
|
12
57
|
```
|
|
13
58
|
Backlog MqttHost mqtt.local; topic tasmota_%06X; setoption57 1; module 71; webbutton1 Light; webbutton2 Off; webbutton3 Fan Low; webbutton4 Fan Med; webbutton5 Fan High; SetOption30 1; devicename Master Light; friendlyname1 Master Light; friendlyname2 Master Fan; setoption19 1;
|
|
@@ -15,7 +60,7 @@ Backlog MqttHost mqtt.local; topic tasmota_%06X; setoption57 1; module 71; webbu
|
|
|
15
60
|
Backlog Rule1 on FanSpeed#Data do teleperiod break; rule1 1
|
|
16
61
|
```
|
|
17
62
|
|
|
18
|
-
|
|
63
|
+
## configuration override of discovery object to create a FAN ( post version 0.1.0 )
|
|
19
64
|
|
|
20
65
|
`302F1B` is the Tasmota ID
|
|
21
66
|
|
|
@@ -31,7 +76,7 @@ Backlog Rule1 on FanSpeed#Data do teleperiod break; rule1 1
|
|
|
31
76
|
`Key:` - `tasmotaType`
|
|
32
77
|
`Value:` - `other`
|
|
33
78
|
|
|
34
|
-
|
|
79
|
+
## configuration override of discovery object to create a FAN ( pre version 0.1.0 )
|
|
35
80
|
|
|
36
81
|
`302F1B` is the Tasmota ID
|
|
37
82
|
|
|
@@ -61,15 +106,15 @@ Backlog Rule1 on FanSpeed#Data do teleperiod break; rule1 1
|
|
|
61
106
|
}
|
|
62
107
|
```
|
|
63
108
|
|
|
64
|
-
## Slave a FEIT Wifi Dimmer Wall Switch
|
|
109
|
+
## Slave a FEIT Wifi Dimmer Wall Switch to an iFan as a light switch
|
|
65
110
|
|
|
66
|
-
Configure FEIT WiFi dimmer as per normal, then
|
|
111
|
+
Configure FEIT WiFi dimmer as per normal without setoption19, then apply this to both devices.
|
|
67
112
|
|
|
68
113
|
```
|
|
69
|
-
backlog SetOption85 1; DevGroupName1 Master;
|
|
114
|
+
backlog SetOption85 1; DevGroupName1 Master; DevGroupShare 1,1
|
|
70
115
|
```
|
|
71
116
|
|
|
72
|
-
|
|
117
|
+
# BME280 Temperature Sensor - [MCUIOT](docs/MCUIOT.md)
|
|
73
118
|
|
|
74
119
|
* Tasmota Configuration
|
|
75
120
|
|
|
@@ -81,7 +126,7 @@ D4 - GPIO2 -> LedLink
|
|
|
81
126
|
Template: {"NAME":"BME","GPIO":[255,255,157,255,255,255,255,255,6,255,5,255,255],"FLAG":15,"BASE":18}
|
|
82
127
|
```
|
|
83
128
|
|
|
84
|
-
|
|
129
|
+
# DHT11 Temperature Sensor - [MCUIOT](docs/MCUIOT.md)
|
|
85
130
|
|
|
86
131
|
* Tasmota Configuration
|
|
87
132
|
|
|
@@ -92,9 +137,9 @@ D4 - GPIO2 -> LedLinki
|
|
|
92
137
|
Template: {"NAME":"DHT-D2/GPIO4","GPIO":[255,255,158,255,2,255,255,255,255,255,255,255,255],"FLAG":15,"BASE":18}
|
|
93
138
|
```
|
|
94
139
|
|
|
95
|
-
|
|
140
|
+
# Water Leak Sensor with On/Off control
|
|
96
141
|
|
|
97
|
-
|
|
142
|
+
## LEAK Tasmota configuration - [DHT11](docs/MCUIOT.md#dht-yl)
|
|
98
143
|
|
|
99
144
|
|
|
100
145
|
```
|
|
@@ -114,7 +159,7 @@ Rule3 on Tele-ANALOG#Moisture>=10 DO backlog publish tasmota_18A6B3/stat/Moistur
|
|
|
114
159
|
on Tele-ANALOG#Moisture<10 do backlog publish tasmota_18A6B3/stat/Moisture {"Leak":"OFF"} ; power off endon
|
|
115
160
|
```
|
|
116
161
|
|
|
117
|
-
|
|
162
|
+
## Leak Tasmota configuration - [BME280](docs/MCUIOT.md#dht-yl)
|
|
118
163
|
|
|
119
164
|
```
|
|
120
165
|
gpio2 - ledlink
|
|
@@ -135,7 +180,7 @@ Rule3 on Tele-ANALOG#Moisture>=20 DO backlog publish tasmota_860695/stat/Moistur
|
|
|
135
180
|
on Tele-ANALOG#Moisture<20 do backlog publish tasmota_860695/stat/Moisture {"Leak":"OFF"} ; power off endon
|
|
136
181
|
```
|
|
137
182
|
|
|
138
|
-
|
|
183
|
+
# Motion + BME280 Temperature Sensor
|
|
139
184
|
|
|
140
185
|
* Tasmota Configuration
|
|
141
186
|
|
|
@@ -160,7 +205,7 @@ SwitchMode 1
|
|
|
160
205
|
}
|
|
161
206
|
```
|
|
162
207
|
|
|
163
|
-
|
|
208
|
+
# PIR Motion + BME280 Temperature Sensor + BH1750 Lux Illuminance Sensor
|
|
164
209
|
|
|
165
210
|
* Tasmota Configuration
|
|
166
211
|
|
|
@@ -186,16 +231,16 @@ SwitchMode 1
|
|
|
186
231
|
```
|
|
187
232
|
|
|
188
233
|
|
|
189
|
-
|
|
234
|
+
# ZMAi-90 Current Sensor Switch
|
|
190
235
|
|
|
191
236
|
* Tasmota configuration
|
|
192
237
|
|
|
193
238
|
```
|
|
194
|
-
Backlog module 54; SetOption66 1; TuyaMCU 0,17; TuyaMCU 32,18; TuyaMCU 31,19; TuyaMCU 33,20; SetOption59 1; MqttHost mqtt.local; topic tasmota_%06X;
|
|
239
|
+
Backlog module 54; SetOption66 1; TuyaMCU 0,17; TuyaMCU 32,18; TuyaMCU 31,19; TuyaMCU 33,20; SetOption59 1; MqttHost mqtt.local; topic tasmota_%06X; SetOption57 1;
|
|
195
240
|
Rule1 on System#Boot do RuleTimer1 5 endon on Rules#Timer=1 do backlog SerialSend5 55aa0001000000; RuleTimer1 5 endon
|
|
196
241
|
```
|
|
197
242
|
|
|
198
|
-
|
|
243
|
+
# MCULED Device with RGB+W Strip
|
|
199
244
|
|
|
200
245
|
```
|
|
201
246
|
D4 - GPIO 2 - ledlinki ( Blue LED )
|
|
@@ -225,7 +270,7 @@ rule2 on Power1#State=1 do backlog power1 off; power2 off; rule2 0; rule3 1; set
|
|
|
225
270
|
rule3 on Power1#State=1 do backlog power1 off; dimmer2 0; power2 off; rule3 0; rule2 1; setoption37 0; template {"NAME":"PWM Mode","GPIO":[0,0,157,0,18,10,0,0,22,17,37,0,0],"FLAG":0,"BASE":18}; power2 on; endon
|
|
226
271
|
```
|
|
227
272
|
|
|
228
|
-
|
|
273
|
+
# MCULED Device with RGB+W Strip - Version 2 ( Basement )
|
|
229
274
|
|
|
230
275
|
```
|
|
231
276
|
D4 - GPIO 2 - ledlinki ( Blue LED )
|
|
@@ -247,7 +292,7 @@ Unit 2 - this is a slave unit using device groups to sync status
|
|
|
247
292
|
backlog DevGroupName basement_led; power1 off; power2 off; Fade 1; setoption37 24; SetOption85 1; webbutton1 White; webbutton2 LED; friendlyname1 Basement White 2; friendlyname2 Basement LED 2; MqttHost mqtt.local; topic tasmota_%06X; Module 0; setoption19 0; rule2 0; template {"NAME":"MCULED","GPIO":[0,0,0,0,0,0,0,0,1376,0,224,0,544,0],"FLAG":0,"BASE":18}
|
|
248
293
|
```
|
|
249
294
|
|
|
250
|
-
|
|
295
|
+
# MCULED Device with RGB+W Strip - Version 2 ( Cottage Sink )
|
|
251
296
|
|
|
252
297
|
```
|
|
253
298
|
D4 - GPIO 2 - ledlinki ( Blue LED )
|
|
@@ -266,7 +311,7 @@ rule2 on Power1#State=1 do backlog power2 off endon
|
|
|
266
311
|
```
|
|
267
312
|
|
|
268
313
|
|
|
269
|
-
|
|
314
|
+
# Tuya Dimmer Module as a FAN
|
|
270
315
|
|
|
271
316
|
* Tasmota configuration
|
|
272
317
|
|
|
@@ -284,7 +329,7 @@ DimmerRange 100,255
|
|
|
284
329
|
}
|
|
285
330
|
```
|
|
286
331
|
|
|
287
|
-
|
|
332
|
+
# Trailer Relay Board
|
|
288
333
|
|
|
289
334
|
* Tasmota configuration
|
|
290
335
|
|
|
@@ -292,7 +337,7 @@ DimmerRange 100,255
|
|
|
292
337
|
backlog webbutton1 Ceiling; webbutton2 Flood; webbutton3 Porch; webbutton4 Step
|
|
293
338
|
```
|
|
294
339
|
|
|
295
|
-
|
|
340
|
+
# Gowfeel EN71 Water Valve
|
|
296
341
|
|
|
297
342
|
Flashing required opening the case and using a FTDI connected to the TYWE3S. Flashed with Tasmota 9.2
|
|
298
343
|
|
|
@@ -302,7 +347,7 @@ Flashing required opening the case and using a FTDI connected to the TYWE3S. Fl
|
|
|
302
347
|
backlog template {"NAME":"SmartValve","GPIO":[224,0,0,0,0,0,0,0,32,288,0,0,0,0],"FLAG":0,"BASE":18}; module 0; MqttHost mqtt.local; topic tasmota_%06X; setoption19 1; setoption57 1
|
|
303
348
|
```
|
|
304
349
|
|
|
305
|
-
|
|
350
|
+
# Homebrew Garage Door Opener
|
|
306
351
|
|
|
307
352
|
This is to document my efforts with my Chamberlain Garage Door Opener, which uses Security 2.0 on local control. Technical details are here [MCUIOT](docs/GarageDoor.md).
|
|
308
353
|
|
|
@@ -363,20 +408,20 @@ Backlog Rule1
|
|
|
363
408
|
```
|
|
364
409
|
|
|
365
410
|
|
|
366
|
-
|
|
411
|
+
# CE SMART Wifi Dimmer
|
|
367
412
|
|
|
368
413
|
* Tasmota configuration
|
|
369
414
|
|
|
370
415
|
```
|
|
371
|
-
backlog template {"NAME":"CE-WF500D","GPIO":[0,0,0,0,0,0,0,0,0,108,0,107,0],"FLAG":0,"BASE":54}; module 0; TuyaMCU 21,3; MqttHost mqtt.local; topic tasmota_%06X;
|
|
416
|
+
backlog template {"NAME":"CE-WF500D","GPIO":[0,0,0,0,0,0,0,0,0,108,0,107,0],"FLAG":0,"BASE":54}; module 0; TuyaMCU 21,3; MqttHost mqtt.local; topic tasmota_%06X; setoption57 1 ;dimmerrange 30,255; setoption19 1
|
|
372
417
|
```
|
|
373
418
|
|
|
374
|
-
|
|
419
|
+
# FEIT Wifi Dimmer
|
|
375
420
|
|
|
376
421
|
* Tasmota configuration
|
|
377
422
|
|
|
378
423
|
```
|
|
379
|
-
backlog module 54;
|
|
424
|
+
backlog module 54; TuyaMCU 21,2; MqttHost mqtt.local; topic tasmota_%06X; setoption57 1; DimmerRange 10,1000; setoption19 1
|
|
380
425
|
```
|
|
381
426
|
|
|
382
427
|
* Tasmota configuration with Dimming removed
|
|
@@ -384,12 +429,23 @@ backlog module 54; DimmerRange 10,1440; TuyaMCU 21,2; MqttHost mqtt.local; topic
|
|
|
384
429
|
I have one installed on a non-dimmable light. This removes the dimmer functionality from HomeKit only, unfortunately local control is still available, and if used will reset to 100% after turning off/on.
|
|
385
430
|
|
|
386
431
|
```
|
|
387
|
-
backlog module 54; DimmerRange 10,
|
|
432
|
+
backlog module 54; DimmerRange 10,1000; MqttHost mqtt.local; topic tasmota_%06X; setoption19 1
|
|
388
433
|
rule1 on Power1#State do tuyasend2 2,1440 endon
|
|
389
434
|
rule1 1
|
|
390
435
|
```
|
|
391
436
|
|
|
392
|
-
|
|
437
|
+
# Turn off after 30 minutes
|
|
438
|
+
|
|
439
|
+
backlog pulsetime 1900
|
|
440
|
+
|
|
441
|
+
Or
|
|
442
|
+
|
|
443
|
+
```
|
|
444
|
+
rule1 on System#Boot do pulsetime 1900 endon
|
|
445
|
+
rule1 1
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
# Hampton Bay Fan/Light RF Remote Control ( 303.9 Mhz )
|
|
393
449
|
|
|
394
450
|
FCCID: CHQ7083T / CHQ9050H 303.9 Mhz RF Remote Control
|
|
395
451
|
|
|
@@ -429,7 +485,7 @@ Rule3 on Power1#State do rfsend {"Data":"0x67E","Bits":12,"Protocol":6,"Pulse":3
|
|
|
429
485
|
}
|
|
430
486
|
```
|
|
431
487
|
|
|
432
|
-
|
|
488
|
+
# Valor Fireplace Remote ( 315 Mhz )
|
|
433
489
|
|
|
434
490
|
```
|
|
435
491
|
Off
|
|
@@ -453,7 +509,7 @@ irsend raw,0,300,001011101110111000101110001000100010111000101110111011100010001
|
|
|
453
509
|
```
|
|
454
510
|
|
|
455
511
|
|
|
456
|
-
|
|
512
|
+
# Treatlife DS03 Fan Controller and Light Dimmer
|
|
457
513
|
|
|
458
514
|
* Tasmota configuration - from https://newadventuresinwi-fi.blogspot.com/2019/12/brilliant-smart-ceiling-fan-remote-in-home-assistant.html
|
|
459
515
|
|
|
@@ -510,7 +566,7 @@ tuyamcu 62,3 --> 62 for 4 speeds fan controller (possible values 0,1,2,3)
|
|
|
510
566
|
|
|
511
567
|
I have been working on utilizing an OpenMQTTGateway device configured with a cc1101 RF Transceiver and the GatewayRF module. The goal is to control my Hampton Bay ( 303 Mhz ), and GE Fans ( 315 Mhz ) and other RF devices.
|
|
512
568
|
|
|
513
|
-
|
|
569
|
+
# Hampton Bay Light
|
|
514
570
|
|
|
515
571
|
msg.payload =
|
|
516
572
|
```
|
|
@@ -543,7 +599,7 @@ homeassistant/light/9e0770_LI_1/config
|
|
|
543
599
|
|
|
544
600
|
msg.retain = true
|
|
545
601
|
|
|
546
|
-
|
|
602
|
+
# Hampton Bay FAN
|
|
547
603
|
|
|
548
604
|
msg.payload =
|
|
549
605
|
```
|
|
@@ -584,7 +640,7 @@ homeassistant/fan/9e0770_F1_1/config
|
|
|
584
640
|
|
|
585
641
|
msg.retain = true
|
|
586
642
|
|
|
587
|
-
|
|
643
|
+
# openMQTTGateway / PiLight temperature sensor
|
|
588
644
|
|
|
589
645
|
Sensor Message
|
|
590
646
|
|
|
@@ -629,3 +685,35 @@ homeassistant/sensor/240AC4EC20DCtemppilight/config
|
|
|
629
685
|
```
|
|
630
686
|
|
|
631
687
|
msg.retain = true
|
|
688
|
+
|
|
689
|
+
# Internet Connection WatchDog
|
|
690
|
+
|
|
691
|
+
## Version 1 ( Uses node-red to monitor google.com and turn off the plug )
|
|
692
|
+
|
|
693
|
+
```
|
|
694
|
+
rule1 on wifi#disconnected do backlog power 0;delay 150;power 1; delay 1800 endon
|
|
695
|
+
rule2 on system#boot do ruletimer1 600 endon on Rules#Timer=1 do backlog power 1; ruletimer1 600 endon
|
|
696
|
+
rule3 on Mqtt#Disconnected do MqttHost 0 endon
|
|
697
|
+
|
|
698
|
+
Backlog MqttHost mqtt.local; topic tasmota_%06X; setoption57 1; setoption19 1; rule2 1
|
|
699
|
+
```
|
|
700
|
+
|
|
701
|
+
## Version 2
|
|
702
|
+
|
|
703
|
+
On boot, setup timer with a exponential backoff algorithm. Var1 contains the current interval in minutes, which is tripled after each failed query, but limited to 1439 minutes (1 day). Set the poweronstate so that when the plug is turned off, it turns on again after 30 seconds.
|
|
704
|
+
|
|
705
|
+
Every Var1 minutes, make sure the plug is on, then check that google.com is reachable.
|
|
706
|
+
If google.com is not reachable, back off timer by a factor of 3, and flicks the power off then on again 10 seconds later.
|
|
707
|
+
If google.com is reachable, reset the exponential backoff algorithm back to 3 minutes.
|
|
708
|
+
|
|
709
|
+
```
|
|
710
|
+
Rule1
|
|
711
|
+
ON system#boot do backlog Var1 3; poweronstate 5; pulsetime 130; Power1 1 ENDON
|
|
712
|
+
ON Var1#State>1439 DO Var1 1439 ENDON
|
|
713
|
+
|
|
714
|
+
ON Time#Minute|%var1% DO backlog Power1 1 ; websend [google.com] / ENDON
|
|
715
|
+
ON WebSend#Data$!Done DO backlog Mult1 3; Power1 0; Delay 10; Power1 1 ENDON
|
|
716
|
+
ON WebSend#Data=Done DO backlog Var1 3 ENDON
|
|
717
|
+
|
|
718
|
+
Backlog MqttHost mqtt.local; topic tasmota_%06X; setoption57 1; setoption19 1; rule1 1
|
|
719
|
+
```
|
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Homebridge Plugin for Tasmota Devices that leverage's the Home Assistant Auto Discovery Function to configure and add devices. And remove the need to manually configure Tasmota devices with Homebridge. So far this has been tested with Switches/Outlets, Dimmers/Light's and temperature sensors ymmv for other devices.
|
|
4
4
|
|
|
5
|
+
# Note: With the release of Tasmota 12, the feature 'Home Assistant discovery' this plugin has been using to discover Tasmota devices has been depricated.
|
|
6
|
+
|
|
7
|
+
Over the next few months I will be working on a update to support version 12, but until that is ready please use versions less than 12.
|
|
8
|
+
|
|
5
9
|
## Features
|
|
6
10
|
|
|
7
11
|
* Automatic discovery and configuration of supported Tasmota devices in Homebridge/Homekit.
|
|
@@ -116,6 +120,10 @@ The Home Assistant MQTT Auto Discovery messages live under the topic 'homeassist
|
|
|
116
120
|
|
|
117
121
|
If you change the configuration in Tasmota of an existing device, and the old characteristics are still visible, you will need to clean up the 'Home Assistant MQTT Auto Discovery' messages for the device then disconnect the device for the cleanup period. You can temporarily change the cleanup period to 0.125 which is approx 10 minutes if your in a hurry.
|
|
118
122
|
|
|
123
|
+
To cleanup and remove all the retained homeassistant discovery messages ( This will remove all your discovered tasmota devices, and you will need to restart each device for the them to be discovered again).
|
|
124
|
+
```
|
|
125
|
+
mosquitto_sub -t 'homeassistant/#' --remove-retained --retained-only
|
|
126
|
+
```
|
|
119
127
|
### Frequency of sensor information updates
|
|
120
128
|
|
|
121
129
|
Frequency of data updates is controlled by the Tasmota device itself and not the plugin itself. The plugin does not poll the device for status, but processes telemetry updates as they are received. The plugin watches for telemetry updates on the tele/SENSOR topic ie 'tasmota-5042/tele/SENSOR'.
|
package/config.schema.json
CHANGED
package/dist/TasmotaService.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.isTrue = exports.TasmotaService = void 0;
|
|
|
7
7
|
const nunjucks_1 = __importDefault(require("nunjucks"));
|
|
8
8
|
const os_1 = __importDefault(require("os"));
|
|
9
9
|
const debug_1 = __importDefault(require("debug"));
|
|
10
|
-
const debug = debug_1.default('Tasmota:Service');
|
|
10
|
+
const debug = (0, debug_1.default)('Tasmota:Service');
|
|
11
11
|
class TasmotaService {
|
|
12
12
|
constructor(platform, accessory, uniq_id) {
|
|
13
13
|
this.platform = platform;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TasmotaService.js","sourceRoot":"","sources":["../src/TasmotaService.ts"],"names":[],"mappings":";;;;;;AAEA,wDAAgC;AAChC,4CAAoB;AAEpB,kDAAgC;AAEhC,MAAM,KAAK,GAAG,eAAW,
|
|
1
|
+
{"version":3,"file":"TasmotaService.js","sourceRoot":"","sources":["../src/TasmotaService.ts"],"names":[],"mappings":";;;;;;AAEA,wDAAgC;AAChC,4CAAoB;AAEpB,kDAAgC;AAEhC,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,iBAAiB,CAAC,CAAC;AAY7C,MAAa,cAAc;IAWzB,YACkB,QAAyB,EACzB,SAA4B,EACzB,OAAe;QAFlB,aAAQ,GAAR,QAAQ,CAAiB;QACzB,cAAS,GAAT,SAAS,CAAmB;QACzB,YAAO,GAAP,OAAO,CAAQ;QAElC,oBAAoB;QACpB,IAAI,CAAC,oBAAoB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC,QAAQ,CAAC,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AAqB,EAAE,KAAa;QAC7C,IAAI;YACF,IAAI,aAAa,EAAE;gBACjB,gEAAgE;gBAChE,IAAI,QAAQ,GAAG,kBAAQ,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;gBACzE,2EAA2E;gBAC3E,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;gBAClE,qEAAqE;gBACrE,IAAI,MAAM,EAAE;oBACV,OAAO,MAAM,CAAC;iBACf;qBAAM;oBACL,OAAO,IAAI,CAAC;iBACb;aACF;iBAAM;gBACL,OAAO,KAAK,CAAC;aACd;SACF;QACD,OAAO,GAAG,EAAE;YAChB,8EAA8E;YAC9E,qEAAqE;YACrE,qBAAqB;SAChB;IACH,CAAC;CACF;AA1MD,wCA0MC;AAED,SAAS,KAAK,CAAC,GAAG;IAChB,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3B,CAAC;AAED,SAAgB,MAAM,CAAC,KAAgC;IACrD,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;QAC/B,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;KACpC;IACD,QAAQ,KAAK,EAAE;QACb,KAAK,IAAI,CAAC;QACV,KAAK,MAAM,CAAC;QACZ,KAAK,CAAC,CAAC;QACP,KAAK,GAAG,CAAC;QACT,KAAK,IAAI,CAAC;QACV,KAAK,KAAK;YACR,OAAO,IAAI,CAAC;QACd;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC;AAfD,wBAeC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAKjC;;GAEG;8BACY,GAAG;AAAlB,kBAEC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare
|
|
2
|
-
declare
|
|
1
|
+
declare const inherits: any;
|
|
2
|
+
declare let Service: any, Characteristic: any;
|
|
3
3
|
//# sourceMappingURL=CustomCharacteristics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomCharacteristics.d.ts","sourceRoot":"","sources":["../../src/lib/CustomCharacteristics.ts"],"names":[],"mappings":"AAAA,QAAA,
|
|
1
|
+
{"version":3,"file":"CustomCharacteristics.d.ts","sourceRoot":"","sources":["../../src/lib/CustomCharacteristics.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ,KAA2B,CAAC;AAC1C,QAAA,IAAI,OAAO,KAAA,EAAE,cAAc,KAAA,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
const inherits = require('util').inherits;
|
|
3
|
+
let Service, Characteristic;
|
|
4
4
|
module.exports = function (Service, Characteristic) {
|
|
5
|
-
|
|
5
|
+
const CustomCharacteristic = {};
|
|
6
6
|
CustomCharacteristic.Voltage = function () {
|
|
7
7
|
Characteristic.call(this, 'Voltage', CustomCharacteristic.Voltage.UUID);
|
|
8
8
|
this.setProps({
|
|
9
9
|
format: Characteristic.Formats.FLOAT,
|
|
10
|
-
unit:
|
|
11
|
-
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
|
|
10
|
+
unit: 'V',
|
|
11
|
+
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY],
|
|
12
12
|
});
|
|
13
13
|
this.value = this.getDefaultValue();
|
|
14
14
|
};
|
|
@@ -19,8 +19,8 @@ module.exports = function (Service, Characteristic) {
|
|
|
19
19
|
Characteristic.call(this, 'Electric Current', CustomCharacteristic.ElectricCurrent.UUID);
|
|
20
20
|
this.setProps({
|
|
21
21
|
format: Characteristic.Formats.FLOAT,
|
|
22
|
-
unit:
|
|
23
|
-
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
|
|
22
|
+
unit: 'A',
|
|
23
|
+
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY],
|
|
24
24
|
});
|
|
25
25
|
this.value = this.getDefaultValue();
|
|
26
26
|
};
|
|
@@ -31,8 +31,8 @@ module.exports = function (Service, Characteristic) {
|
|
|
31
31
|
Characteristic.call(this, 'Current Consumption', CustomCharacteristic.CurrentConsumption.UUID);
|
|
32
32
|
this.setProps({
|
|
33
33
|
format: Characteristic.Formats.FLOAT,
|
|
34
|
-
unit:
|
|
35
|
-
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
|
|
34
|
+
unit: 'W',
|
|
35
|
+
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY],
|
|
36
36
|
});
|
|
37
37
|
this.value = this.getDefaultValue();
|
|
38
38
|
};
|
|
@@ -43,8 +43,8 @@ module.exports = function (Service, Characteristic) {
|
|
|
43
43
|
Characteristic.call(this, 'Total Consumption', CustomCharacteristic.TotalConsumption.UUID);
|
|
44
44
|
this.setProps({
|
|
45
45
|
format: Characteristic.Formats.FLOAT,
|
|
46
|
-
unit:
|
|
47
|
-
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
|
|
46
|
+
unit: 'kWh',
|
|
47
|
+
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY],
|
|
48
48
|
});
|
|
49
49
|
this.value = this.getDefaultValue();
|
|
50
50
|
};
|
|
@@ -54,11 +54,11 @@ module.exports = function (Service, Characteristic) {
|
|
|
54
54
|
Characteristic.call(this, 'Air Pressure', CustomCharacteristic.AtmosphericPressureLevel.UUID);
|
|
55
55
|
this.setProps({
|
|
56
56
|
format: Characteristic.Formats.UINT16,
|
|
57
|
-
unit:
|
|
58
|
-
minValue:
|
|
57
|
+
unit: 'hPa',
|
|
58
|
+
minValue: 100,
|
|
59
59
|
maxValue: 1100,
|
|
60
60
|
minStep: 1,
|
|
61
|
-
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
|
|
61
|
+
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY],
|
|
62
62
|
});
|
|
63
63
|
this.value = this.getDefaultValue();
|
|
64
64
|
};
|
|
@@ -83,7 +83,7 @@ module.exports = function (Service, Characteristic) {
|
|
|
83
83
|
this.setProps({
|
|
84
84
|
format: Characteristic.Formats.UINT8,
|
|
85
85
|
unit: Characteristic.Units.PERCENTAGE,
|
|
86
|
-
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
|
|
86
|
+
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY],
|
|
87
87
|
});
|
|
88
88
|
this.value = this.getDefaultValue();
|
|
89
89
|
};
|
|
@@ -92,7 +92,7 @@ module.exports = function (Service, Characteristic) {
|
|
|
92
92
|
Characteristic.call(this, 'Program command', 'E863F12C-079E-48FF-8F27-9C2605A29F52');
|
|
93
93
|
this.setProps({
|
|
94
94
|
format: Characteristic.Formats.DATA,
|
|
95
|
-
perms: [Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
|
|
95
|
+
perms: [Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY],
|
|
96
96
|
});
|
|
97
97
|
this.value = this.getDefaultValue();
|
|
98
98
|
};
|
|
@@ -101,7 +101,7 @@ module.exports = function (Service, Characteristic) {
|
|
|
101
101
|
Characteristic.call(this, 'Program data', 'E863F12F-079E-48FF-8F27-9C2605A29F52');
|
|
102
102
|
this.setProps({
|
|
103
103
|
format: Characteristic.Formats.DATA,
|
|
104
|
-
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
|
|
104
|
+
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY],
|
|
105
105
|
});
|
|
106
106
|
this.value = this.getDefaultValue();
|
|
107
107
|
};
|
|
@@ -111,7 +111,7 @@ module.exports = function (Service, Characteristic) {
|
|
|
111
111
|
this.setProps({
|
|
112
112
|
format: Characteristic.Formats.UINT32,
|
|
113
113
|
unit: Characteristic.Units.SECONDS,
|
|
114
|
-
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
|
|
114
|
+
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY],
|
|
115
115
|
});
|
|
116
116
|
this.value = this.getDefaultValue();
|
|
117
117
|
};
|
|
@@ -122,7 +122,7 @@ module.exports = function (Service, Characteristic) {
|
|
|
122
122
|
this.setProps({
|
|
123
123
|
format: Characteristic.Formats.UINT32,
|
|
124
124
|
unit: Characteristic.Units.SECONDS,
|
|
125
|
-
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
|
|
125
|
+
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY],
|
|
126
126
|
});
|
|
127
127
|
this.value = this.getDefaultValue();
|
|
128
128
|
};
|
|
@@ -132,7 +132,7 @@ module.exports = function (Service, Characteristic) {
|
|
|
132
132
|
Characteristic.call(this, 'Times Opened', CustomCharacteristic.TimesOpened.UUID);
|
|
133
133
|
this.setProps({
|
|
134
134
|
format: Characteristic.Formats.UINT32,
|
|
135
|
-
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
|
|
135
|
+
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY],
|
|
136
136
|
});
|
|
137
137
|
this.value = this.getDefaultValue();
|
|
138
138
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomCharacteristics.js","sourceRoot":"","sources":["../../src/lib/CustomCharacteristics.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"CustomCharacteristics.js","sourceRoot":"","sources":["../../src/lib/CustomCharacteristics.ts"],"names":[],"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C;SAChE,CAAC,CAAC;QACH,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;IACtC,CAAC,CAAC;IACF,oBAAoB,CAAC,UAAU,CAAC,IAAI,GAAG,sCAAsC,CAAC;IAC9E,QAAQ,CAAC,oBAAoB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;IAE9D,oBAAoB,CAAC,WAAW,GAAG;QACjC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,oBAAoB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACjF,IAAI,CAAC,QAAQ,CAAC;YACZ,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,MAAM;YACrC,KAAK,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC;SAChE,CAAC,CAAC;QACH,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;IACtC,CAAC,CAAC;IACF,oBAAoB,CAAC,WAAW,CAAC,IAAI,GAAG,sCAAsC,CAAC;IAC/E,QAAQ,CAAC,oBAAoB,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAE3D,OAAO,oBAAoB,CAAC;AAC9B,CAAC,CAAC"}
|
package/dist/lib/Mqtt.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.Mqtt = void 0;
|
|
|
7
7
|
const mqtt_1 = __importDefault(require("mqtt"));
|
|
8
8
|
const debug_1 = __importDefault(require("debug"));
|
|
9
9
|
const events_1 = require("events");
|
|
10
|
-
const debug = debug_1.default('Tasmota:mqtt');
|
|
10
|
+
const debug = (0, debug_1.default)('Tasmota:mqtt');
|
|
11
11
|
var connection;
|
|
12
12
|
var wildCardTopics = [];
|
|
13
13
|
class Mqtt extends events_1.EventEmitter {
|
|
@@ -62,11 +62,11 @@ class Mqtt extends events_1.EventEmitter {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
catch (error) {
|
|
65
|
-
debug(
|
|
66
|
-
debug(
|
|
65
|
+
debug('Error:', error);
|
|
66
|
+
debug('Triggerd by:', message.toString());
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
else if (topic.endsWith(
|
|
69
|
+
else if (topic.endsWith('config')) {
|
|
70
70
|
this.emit('Remove', topic);
|
|
71
71
|
// debug('Remove', topic);
|
|
72
72
|
}
|