28 Commits

Author SHA1 Message Date
Alex M
4ea2f0a58f Added friendly topics for the devices behind gateway
You can now use:
tuya/gw1/lv/dps/2/command
instead of tuya/zgw1/2342cd828dfsxckkk/dps/2/command
2024-02-19 19:40:13 +03:00
lehanspb
6aded16979 Added cid support and dp-refresh function 2023-02-15 10:34:17 +03:00
tsightler
8b532d9df1 v3.0.4
* Fix reconnect failure for some error cases
* Bump tuyapi version to latest
2021-01-27 13:46:55 -05:00
tsightler
02d5124b62 v3.03
* Fix reconnect failure in some disconnect cases
* Remove duplicate republish function
2021-01-12 20:19:42 -05:00
tsightler
a5b344faeb Update to 3.0.2 (#63)
* Update 3.0.2
* Fix (hopefully) uninitialized key values for devices which block get requests for some DPS values based on operating mode (seen with at least one RGBTW light that will not return color DPS key while in white mode).
* Modify HSB/HSBHEX guessing in RGBTW light to attempt to deal with issue above
* Implement automatic reconnect when device disconnects socket on it's side
* Update package dependencies to latest versions
2021-01-05 22:18:19 -05:00
tsightler
aa80270ba2 Update 3.0.1 (#61)
* Script to merge device additions and changes into devices.conf (#49)
* Add republish on reconnect
* Filter additional invalid characters '+','#','/' from topic line (replace with '_')
* Minor bugfixes for parse values
* Include script for merging new devices into existing config
* Update dependency

Co-authored-by: tsightler <tsightler@gmail.com>
Co-authored-by: Doug Krahmer <doug.git@remhark.com>
2020-12-23 20:22:09 -05:00
tsightler
b29b98911a Revert "Dev (#60)"
This reverts commit 44a5c6adbf.
2020-12-23 20:18:39 -05:00
tsightler
44a5c6adbf Dev (#60)
3.0.1 Update
* Script to merge device additions and changes into devices.conf (#49)
* Fix typos in README.md
* Add republish on reconnect
* Filter additional invalid characters '+','#','/' from topic line (replace with '_')
* Minor bugfixes for parse values
* Include script for merging new devices into existing config
* Update dependency

Co-authored-by: tsightler <tsightler@gmail.com>
Co-authored-by: Doug Krahmer <doug.git@remhark.com>
2020-12-23 20:10:29 -05:00
tsightler
d61c1f7cee Release 3.0.0
3.0.0 Release

Major changes from 2.1.0:
* Completely new configuration engine
* Completely new topic structure
* New template engine for creating friendly topic structure from raw DPS values
* Pre-defined templates for some common devices
* Directly control devices via Tuya JSON topic or via DPS key topics
2020-10-18 20:53:58 -04:00
tsightler
45a26f84de 3.0.0 Documentation updates 2020-10-17 13:32:50 -04:00
tsightler
1abcdb02dc 3.0.0 Documentation Update 2020-10-16 21:32:27 -04:00
tsightler
ab2d4da5d6 Simplify color logic
* Color/white switch logic simplified and more reliable
* Clean up variable names
2020-10-16 01:23:54 -04:00
tsightler
748a5cae39 Minor enhancements
* Properly disconnect from devices on exit
* Monitor for Home Assistant status and resend discovery
2020-10-15 11:05:41 -04:00
tsightler
271697439c Always set saturation to 0 in white mode 2020-10-14 11:40:43 -04:00
tsightler
8f129617b0 Color Tweaks/Cleanups
Minor tweaks and misc cleanups preparing for 3.0.0 release
2020-10-13 00:39:56 -04:00
tsightler
60b50c760e 3.0.0-beta4
* Default to generic device
* Improved debugging granularity/increased categories
* Add heartbeat monitoring for availability
* Catch more failure cases with retry (still some missing I'd guess)
* Switch to MathJS evaluate for simple math transforms
* RGBTW: Switch base scale for all friendly topics to 100 (automatic conversion on backend)
* RGBTW: Add color temperature support
* RGBTW: Improve autodetection
* RGBTW: Improved white/color mode handling (still work to do here)
2020-10-12 16:14:22 -04:00
tsightler
d5217ce237 3.0.0-beta3
* Improve RGBTW white/color logic
* Rebase MQTT topic brightess to 100 scale (vs 255/1000)
* Added based auto-discovery for RGBTW light
* Added math functions
2020-10-07 08:26:13 -04:00
tsightler
38d3092af3 Update rgbtw-light.js 2020-10-05 09:56:04 -04:00
tsightler
d75e2189da Update tuya-device.js 2020-10-05 08:35:56 -04:00
tsightler
4ff6fc221e More RGBTW tweaks 2020-10-05 02:05:34 -04:00
tsightler
3705efaaed More RGB fixes 2020-10-04 23:34:37 -04:00
tsightler
6c72afd8ab Color support for HSBHEX 2020-10-04 01:04:54 -04:00
tsightler
3605037b69 Granular state updates
* State topics now only update if data for the specific DPS changed
* Rework RGBTW support for more reliable white/color mode switching
2020-10-03 22:41:57 -04:00
tsightler
df01beb8fc RGBTW light fixes 2020-10-03 13:32:48 -04:00
tsightler
9176b8f85c Reorganize tuya-device 2020-10-03 11:45:41 -04:00
tsightler
68d8743882 Fix for no template 2020-10-03 10:38:43 -04:00
tsightler
99f5358794 Remove console output 2020-10-02 23:24:42 -04:00
tsightler
f598d246cf 3.0.0-beta2
* Implement basic template model
* Generic device can specify template in devices.conf
* Simple switch, dimmer, and RGBTW specific support files
2020-10-02 23:16:53 -04:00