Commit Graph

101 Commits

Author SHA1 Message Date
Gabor Simon 4492a14574 Added SetOption37 for RGB remapping 2019-02-24 12:07:15 +00:00
Gabor Simon 38b81302e3 sm16716: added config option for custom rgb order 2019-02-24 09:26:10 +04:00
Andre Thomas 5b71095e02
Make sleep for light scheme0 optional
Make sleep for light scheme0 optional with compile directive (enabled by default)
2019-02-18 08:21:57 +02:00
Theo Arends 98ae3eaf54 6.4.1.16 Online template change
6.4.1.16 20190211
 * Initial support for online template change using command Template (#5177)
2019-02-11 19:21:49 +01:00
Gabor Simon 2d892f64cd Init delay of SM16716 increased to 1 ms
As per measurements by @damondins:
https://github.com/gsimon75/Sonoff-Tasmota/pull/3#issuecomment-462059310
2019-02-10 08:33:05 +00:00
Colin Kuebler d7b8a6453d Added preprocessor constant for LT_SM16716 for improved code readability
Note that this differs from other LT_* in that it's not an enum
Ensure the SM16716 codepath is only taken when the top half of light_type is LT_SM16716
2019-02-01 19:41:12 -05:00
Colin Kuebler 817d0af598 No need (and pointless) to call SM16716_Init until color updates, iff using sel pin 2019-02-01 17:37:37 -05:00
Colin Kuebler 99b027852b Fixed first color command failing; need to wait for chip to power up 2019-02-01 17:33:21 -05:00
Colin Kuebler 25856c323a Track sm16716 select pin state so we don't waste cycles continuously enabling/disabling color
Added some comments; disabled sm16716 debug messages by default
Removed delay after setting select pin; didn't seem to help anyway
2019-02-01 00:59:53 -05:00
Colin Kuebler 04f1ed1659 Implemented sm16716 select
If SM16716_SEL is specified, it will toggle it on/off depending on whether or not there is color data
2019-01-31 17:17:01 -05:00
Colin Kuebler f60dd3c06a Moved pin mode selection for sm16716 out of init function
Made void
Call SM16716_Init before setting the color
2019-01-30 18:32:37 -05:00
Colin Kuebler 4b6ddfb76f Moved PWM control to its own block while using SM16716 to skip RGB values 2019-01-30 18:15:25 -05:00
Colin Kuebler ec984ab841 Fixed compiler errors
Missing #endif oops
Vestigial function call
2019-01-30 17:32:17 -05:00
Colin Kuebler fa7440fb9a Allow PWM while SM16716 is enabled, for mixed control devices 2019-01-30 17:28:25 -05:00
Colin Kuebler 3a43050d93 Integrated Gabor's SM16716 code into the light driver code
Removed redundant processing and variables
Added new light type to distinguish SM16716 devices
2019-01-30 17:19:40 -05:00
Theo Arends 304ac6fe44 6.4.1.12 code changes (byte/boolean)
6.4.1.12 20190128
 * Change code use of boolean to bool and byte to uint8_t
 * Change code uint8_t flags to bool flags
2019-01-28 14:08:33 +01:00
Theo Arends 269258bde5
Update xdrv_04_light.ino 2019-01-27 11:25:28 +01:00
Andre Thomas f23d18723e
Disable sleep 0 for scheme 0
Disable sleep 0 for scheme 0 as there is no animation required
2019-01-26 16:43:36 +02:00
Theo Arends eab6be8bcb Fix WS2812 led command
Fix WS2812 led command to address last pixel (#5015)
2019-01-24 11:55:31 +01:00
Joel Stein bab1e4e6ac light: improve handling of dimmer_plugin (fix rules) 2019-01-13 14:52:33 +01:00
Theo Arends 0195cabbd6 Add relay status functionality to LED2
Add relay status functionality to LED2 when configured leaving LED1 for (wifi/mqtt) status indication
2019-01-06 18:02:21 +01:00
Theo Arends 447ec6256e 6.4.1.4 Update Copyright (C) 2019
6.4.1.4 20190101
 * Update Copyright (C) 2019
2019-01-01 13:55:01 +01:00
Theo Arends afe83a3460 Prep for template tuning 2018-12-29 17:19:13 +01:00
Theo Arends 0b10f48e41 6.4.1.1 Fix most compiler warnings
6.4.1.1 20181224
 * Fix most compiler warnings
2018-12-24 18:14:25 +01:00
Joel Stein b2005fba40 introduce new api-call for dimmer-devices 2018-12-17 18:29:42 +01:00
Erik d3ccd668b0 Publish state message when changing effect 2018-12-12 20:32:10 +01:00
Theo Arends a516b25c1b Clean and shrink lights
Clean and shrink lights
2018-12-09 16:45:26 +01:00
Erik d8cf001304 Announce RGBW light, add 'White' command 2018-12-07 21:32:01 +01:00
Erik 74172f14d3 Further improve Hass auto discovery 2018-12-02 16:39:59 +01:00
Joel Stein b7a18f7bcc PS_16_DZ: tryfix dimming 2018-11-26 00:31:45 +01:00
Joel Stein 34da2859ba PS_16_DZ: fixes 2018-11-24 05:08:14 +01:00
Joel Stein 55b287d6da PS_16_DZ: fix define in xdrv04 2018-11-24 04:09:57 +01:00
Joel Stein 64d6ef86ce PS_16_DZ: initial support 2018-11-24 03:29:32 +01:00
Theo Arends e284e78b4d Add support for Armtronix dimmers
Add support for Armtronix dimmers. See wiki for info (#4321)
2018-11-16 12:22:15 +01:00
wvdv2002 7b6553d116 Merge remote-tracking branch 'origin/development' into armtronix 2018-11-16 09:31:58 +01:00
andrethomas 4a7e7b0dbb Change C functions with () to (void) 2018-11-14 15:32:09 +02:00
wvdv2002 410e49a3c7 Added Armtronix dimmer support 2018-11-10 16:30:29 +01:00
Theo Arends 9fef82736d Prep drivers for management
Prep drivers for management
2018-11-07 10:30:03 +01:00
Theo Arends d1c807998f Rewrite Tuya Dimmer code
Rewrite Tuya Dimmer code
2018-10-18 13:01:31 +02:00
digiblur 5894cd97fc Initial TuyaDimmer Support 2018-10-15 18:32:14 -05:00
Erik 87dc6fe20e Add basic support for color calibration 2018-09-29 16:55:53 +02:00
Adrian Scillato 6f724e705b
Added support for Xiaomi-Phillips bulb 2018-09-13 11:45:01 -03:00
Erik b5d7f75647 Fix setting and getting color temperature for Philips Hue emulation
- Improve setting and getting color temperature for Philips Hue emulation
- Clamp Philips Hue API values
- Turn off white LEDs when setting hue+saturation
2018-09-08 08:49:08 +02:00
gitolicious 170013c1e1
Added 4th dimming step
It wasn't a good idea to cycle through three dimming steps only, as the 4th would be triggered by the toggle, but nothing happened (`Color 203` got ignored).
2018-09-04 23:03:19 +02:00
gitolicious bd0323f6f2
Added toggle function for RGBW lights #3695
Proposed fix for #3695
2018-09-04 22:43:27 +02:00
Theo Arends ebb7f929a0 Fix HsbColor
Fix HsbColor (#3430) and enable multiple DS18X20 sensors as default
2018-08-29 16:05:27 +02:00
Adrian Scillato aa79874013
Added Individual HSBCOLOR Commands for HomeKit
Added individual HSBCOLOR commands for better integration to HomeKit and OpenHab.

Usage:

HSBCOLOR1 <x> to set Hue
HSBCOLOR2 <x> to set Saturation
HSBCOLOR3 <x> to set Brightness

Still is supported previous command HSBCOLOR <hue>,<sat>,<bri>
2018-08-27 22:46:04 -03:00
Felicia Hummel 71b29f833a When passing values for multiple WS2812 LEDs at once, updating is very slow because after each LED is set, the strip is updated. The update was so slow that it was visible with the eye. For me, it took approx 0.5 seconds to update an 28 pixel long strip.
This patch suspends updates to the strip while procesing the passed LEDs, enabling the updates afterwards.
2018-06-16 15:23:11 +02:00
Theo Arends d4119fe54d Add SnfBrdg EFM8BB1 fw tools
6.0.0a
* Add support for uploading Sonoff Bridge firmware found in
tools/fw_efm8bb1 folder build by Portisch using Web Gui File Upload
(#2886)
* Add command RfRaw to control Portisch firmware features
2018-06-04 18:10:38 +02:00
Theo Arends ed56322f12 Add command source information
5.14.0b
* Add source information to command execution to be shown with logging
option 3 (#2843)
2018-05-28 15:52:42 +02:00
Theo Arends 41496acdee File renames and Add command WebSend
5.14.0b
* Add command WebSend [<host>(:<port>,<user>:<password>)] <command>
(#2821)
2018-05-28 11:35:23 +02:00