Commit Graph

619 Commits

Author SHA1 Message Date
David Gwynne cf8cd47126 Add a key to the TuyaReceived to help when writing boilerplate rules.
The key is in the form Cmnd<msgtype>DpId<ID>DpType<DpIdType> with a
value that is the hex encoding of the DpIdData. This allows Rules to be
written that target status updates from a specific DpId and of a specific
message type. For example, an Anko HEGSM40 fan reports the speed the fan
is operating at via STAT message on DpId 4 of type Enum. To publish the
speed to MQTT as it's reported from the MCU, I can use the following rule:

  on TuyaReceived#Cmnd7DpId3DpType4 do Publish stat/%topic%/SPEED %value% endon

This appears "on the wire" as:

  stat/tasmota/SPEED 01
2020-02-03 15:02:09 +11:00
Theo Arends 26cee00e2f
Merge pull request #7626 from to-scho/hotfix/shutterbuttons_simultaneous_press
simultaneous shutter button press per shutter
2020-02-01 19:07:13 +01:00
Hadinger 3b61d77680 Fix wrong CT channel for Module 48 2020-02-01 14:23:13 +01:00
to-scho c6a2854a6e simultaneous shutter button press per shutter
detect simultaneous press per shutter and not for whole module
2020-01-30 14:33:33 +01:00
Theo Arends 42461aaaf3 Fix command Publish payload handling 2020-01-27 17:38:32 +01:00
to-scho 11b13f73b0 fix shutterposition call w/o arguments after boot 2020-01-27 11:05:11 +01:00
Theo Arends a2a650102e
Merge pull request #7615 from to-scho/hotfix/shutter_wraparound_endstoptime
fix position wrap around when shutterendstoptime is enabled
2020-01-27 10:38:28 +01:00
to-scho 0d03c1682e fix position wrap around when shutterendstoptime is enabled 2020-01-27 09:46:39 +01:00
Hadinger fab03d8173 Add ``SetOption84 1`` sends AWS IoT device shadow updates (alternative to retained) 2020-01-26 23:08:52 +01:00
Theo Arends 9efe67127d Refactor wifi code 2020-01-26 15:52:26 +01:00
Theo Arends 3d00c4f093 Change wifi connectivity stability
Change wifi connectivity stability (#7602)
2020-01-26 14:30:11 +01:00
Theo Arends 7ad63b4760
Merge pull request #7602 from wir3z/development
Address multiple WiFI connectivity /stability issues.
2020-01-26 14:21:06 +01:00
Theo Arends ff01f934e2 Bump version 8.1.0.5 2020-01-26 14:20:40 +01:00
Theo Arends 5b0259e7c3 Keep legacy support 2020-01-26 14:16:44 +01:00
CORP\vdi 81c6355b8f Address multiple WiFI connectivity /stability issues.
1) Reduce the roam threshold to 5dBm to fix issues where a device might connect at -80dBM which is marginal operation, but would not roam to a -72dBm AP
2) Reduce the scan rate from 44 minutes to 5 minutes to accelerate network harmony
3) Arduino SDK was allowed to control re-connections which resulted in a de-authentication attack on teh WiFi AP.  Explicitly disable with WiFi.setAutoReconnect(false);
4) Reduce WIFI_CHECK_SEC to 5, and Wifi.retry_init times to accommodate Tasmota dealing with retransmissions.
5) WifiBeginAfterScan:  Save the last BSSID a connection attempt was made on.  Should that error, pick the next strongest AP for the next attempt.  Addresses situations where an AP has a high RSSI, but poor channel health due to it being overloaded.
6) WifiCheckIPAddrStatus: Error cases did not properly alternate between AP's, with some error cases geeting hug up where they did not initiate a reconnection so the device became non-responsive.  Device now starts at Wifi.retry_init, tries to connect, does again at Wifi.retry_init/2, and then does a WifiConfig.  Should no IP address be received, restart DHCP each second during this time.

Test Environment:
27 Tasmota devices
3 SonicWALL corporate AP's
Highly interfered 801.11n network
2020-01-25 11:22:40 -07:00
Hadinger e34cc3cbcc Change Zigbee commands renamed to ``Zb*`` 2020-01-25 17:42:53 +01:00
Theo Arends 53e93215df Fix trigger SYSTEM#BOOT
Fix trigger SYSTEM#BOOT when mdns is disabled an no mqqthost is set (#7552)
2020-01-25 13:45:26 +01:00
Theo Arends febabec3bb Fix Gui ADC Range unit 2020-01-25 12:17:35 +01:00
Theo Arends 473299ffcd Refactor rules JSON decoding
Refactor rules JSON decoding allowing up to 10 subtypes deep
2020-01-24 17:13:39 +01:00
Theo Arends ddd1f4c379 Return state information when wakeup is complete
Return state information when wakeup is complete (#7583)
2020-01-24 12:48:50 +01:00
Theo Arends a4e2b28b86
Merge pull request #7587 from BASM/development
ds1624/ds1621: Stabilization and bug fixes
2020-01-24 11:18:54 +01:00
Federico Leoni 26755202c7
New ADC Range 2020-01-23 19:21:49 -03:00
Federico Leoni 6757d9731a
new ADC Range definition 2020-01-23 19:17:15 -03:00
Hadinger 60f5492765 Add Zigbee support for Aqara Cube rotate 2020-01-23 21:55:10 +01:00
Leonid Muravjev b977c28435 ds1624/ds1621: Stabilization and bug fixes
* ds1621 datasheet is wrong for higher resolution, fixed
* ds1621 sometimes reset on bad (long) i2c bus, added autoreconfigure
* hotplug bug fixes
2020-01-23 23:45:24 +03:00
Theo Arends 3b71173a09 Add precision to Moisture sensor
Add precision to Moisture sensor (#7402)
2020-01-23 18:13:32 +01:00
Theo Arends 9afbf854cf Add rule trigger on one level deeper
Add rule trigger on one level deeper using syntax with two ``#`` like ``on zigbeereceived#vibration_sensor#aqaracubeside=0 do ...``
2020-01-23 13:03:05 +01:00
Theo Arends ac486f2186 Document my_image 2020-01-23 10:57:29 +01:00
Theo Arends 92a5d978de
Merge pull request #7581 from patrickdk77/development
make kCodeImage/my_image more customizable
2020-01-23 10:34:04 +01:00
Theo Arends 405da3ee3f
Update tasmota.ino
Keep hackbox commit insert possibility
2020-01-23 10:33:08 +01:00
Patrick Domack 2e89370f1e Add ability to define more subversions in user overrides and remove ram/flash usage to store all versions. 2020-01-22 16:49:28 -05:00
Hadinger b2c0a34979 Minor Zigbee improvements 2020-01-22 22:40:28 +01:00
Hadinger 514f3e7357 Fix ``RGBWWTable`` ignored (#7572) 2020-01-22 21:37:23 +01:00
Theo Arends 2f00aad103
Merge pull request #7573 from to-scho/feature/shutterbuttons_mqqt_rules
Shutterbutton to MQTT and rules
2020-01-22 16:15:33 +01:00
Theo Arends 7ea60116cf Document Light commands 2020-01-22 16:14:03 +01:00
to-scho 6e81262709 Shutterbutton to MQTT and rules 2020-01-22 13:23:59 +01:00
Theo Arends fb485dabd3 Add optional parameter <startcolor> to command ``Scheme``
Add optional parameter <startcolor> to command ``Scheme <scheme>, <startcolor>`` to control initial start color
2020-01-22 11:55:48 +01:00
Theo Arends 38b344fcea Remove the need for GPIO_CSE7766_TX 2020-01-21 17:10:08 +01:00
Theo Arends a61c028b66 Add SoftwareSerial to CSE7766 driver
Add SoftwareSerial to CSE7766 driver allowing different GPIOs (#7563)
2020-01-21 16:38:55 +01:00
Theo Arends 760f4e49ac Add compile time control over settings 2020-01-21 12:36:44 +01:00
Theo Arends c1a86af6a8
Merge pull request #7564 from Staars/development
add support for LYWSD02
2020-01-21 09:17:36 +01:00
Staars 6d36f36659 add support for LYWSD02 2020-01-20 19:44:55 +01:00
Theo Arends e01c1b8c45 Add compile time control over SetOptions 2020-01-20 18:49:57 +01:00
Theo Arends 58a50cec8c Fix Zigbee compile error 2020-01-20 10:05:12 +01:00
Hadinger 79fdc265b7 Minor fixes to Zigbee friendly names 2020-01-19 22:59:02 +01:00
Theo Arends 588f3ca0b2
Merge pull request #7557 from BASM/7556_i2csetdevice
i2c: I2cSetDevice wrong behavior
2020-01-19 15:31:56 +01:00
Leonid Muravjev e03a14ce21 i2c: I2cSetDevice wrong behavior
Most drivers do not expect address blocking after calling i2cSetDevice.
I2cSetActive removed from I2cSetDevice. All drivers waiting for this call are fixed.

refs #7556
2020-01-19 16:15:18 +03:00
Theo Arends 6d5b0ed622 Remove redundant code 2020-01-19 14:12:25 +01:00
Theo Arends 6c83787210 Lower mqttlog stack usage 2020-01-19 12:22:40 +01:00
Theo Arends 45ed0257b6 Better support for Prefix1 equals Prefix2 2020-01-18 16:57:48 +01:00