Commit Graph

625 Commits

Author SHA1 Message Date
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
Theo Arends 5716d08de9 Refactor MQTT Logging and publish 2020-01-18 15:34:01 +01:00
Hadinger 18ce64f813 Add Zigbee persistence and friendly names 2020-01-18 00:02:01 +01:00
Theo Arends 50a25aeb7c Experimental DS18x20 for Shelly
Experimental DS18x20 for Shelly (#7469)
2020-01-17 17:51:27 +01:00
Theo Arends 60c5a1a83a
Merge pull request #7539 from Staars/development
add virtual serial port via TCP for ublox-GPS-modules
2020-01-17 17:15:33 +01:00
Theo Arends be5c7a4367 Document and add errorchecks to OTA
Document and add errorchecks to OTA
2020-01-17 17:14:53 +01:00
Staars 400d4a0604 add virtual serial port via TCP 2020-01-17 16:44:43 +01:00
Theo Arends e8ce1eb641 Fix OTA minimal gzipped detection
Fix OTA minimal gzipped detection regression from 8.1.0.3
2020-01-17 15:38:03 +01:00
Theo Arends 65d1f3aace Fix PowerDelta calculation
Fix PowerDelta calculation not detecting zero power (#7515)
2020-01-17 10:12:57 +01:00
Shantur Rathore 920501fef9 Implement new Tuya multi dpid protocol. Fixes #7489 2020-01-16 15:19:57 +00:00
Theo Arends adb2dbbcbd Fix ColorTemp brightness 2020-01-16 14:37:10 +01:00
Theo Arends a6e95211cc Add more web page sliders
Add web page sliders when ``SetOption37 128`` is active allowing control of white(s)
2020-01-16 14:22:39 +01:00
Theo Arends aa170fefd4
Merge pull request #7521 from dgwynne/HSColor
Make the B or brightness part of the HSBColor command optional
2020-01-16 13:00:26 +01:00
Theo Arends 0755ad488e Bump version to 8.1.0.4 2020-01-16 11:35:48 +01:00
Theo Arends 5b797a8f4e Add new SwitchMode options
Add ``SwitchMode 8`` ToggleMulti, ``SwitchMode 9`` FollowMulti and ``SwitchMode 10`` FollowMultiInverted (#7522)
2020-01-16 10:39:59 +01:00
to-scho 6ab5c7432e patch-1
typos
2020-01-15 16:12:55 +01:00
to-scho e327236485 New switchmodes TOGGLEMULTI, FOLLOWMULTI and FOLLOWMULTI_INV 2020-01-15 13:05:00 +01:00
David Gwynne a2c8ea9d65 Make the B or brightness part of the HSBColor command optional
This makes it easier (possible?) to use the HSBColor with hs_command_topic
in Home-Assistant, which in turn allows completely independent control
of the color part of an RGBW or RGBWW bulb.
2020-01-15 22:14:47 +11:00
Theo Arends 338499d8e2 Fix unknown command topic 2020-01-14 16:57:55 +01:00
Hadinger 77191f2fe9 Simplified TimeDifference (saves 16 bytes) 2020-01-14 16:41:47 +01:00
Theo Arends ceef563414 Add simple check for serialreceived JSON
Add simple check for serialreceived JSON (#7506)
2020-01-14 15:58:56 +01:00
Theo Arends fe17be62cc Add user control over vertical console size
Add user control over vertical console size (#7507)
2020-01-14 15:38:16 +01:00
Theo Arends 81d58d69b6 Revert "Add user control over vertical console size"
This reverts commit 423b6f251b.
2020-01-14 14:42:30 +01:00
Theo Arends 423b6f251b Add user control over vertical console size
Add user control over vertical console size (#7507)
2020-01-14 14:33:27 +01:00
to-scho 64d3d0c075 Change MQTT reporting of instantaneous shutter position from tele to stat 2020-01-14 13:32:51 +01:00
Theo Arends 0db458c774 Fix exception 9 restart on log message
Fix exception 9 restart on log message in Ticker interrupt service routines NTP, Wemos and Hue emulation (#7496)
2020-01-14 12:47:48 +01:00
Theo Arends fc9fafc19b
Merge pull request #7510 from to-scho/hotfix/shutterlock_webbutton
Show webbutton label '-' when shutter is locked
2020-01-14 11:26:01 +01:00
to-scho bc83aad8bd Show webbutton label '-' when shutter is locked 2020-01-14 11:00:22 +01:00
to-scho 0327d7f4b4 New command ShutterEnableEndStopTime 2020-01-13 12:00:34 +01:00
to-scho d00bea84ec Fix target shutter position inaccuracy
Introduced numerical rounding when calculating between "%" and "time" position values
2020-01-13 09:48:29 +01:00
Hadinger 5840f71af9 Fix char[] allocation 2020-01-12 23:31:57 +01:00
to-scho 80773f74c7 initialize shutters when interlock is changed 2020-01-12 15:41:51 +01:00
to-scho 8cf411a1c3 New command ShutterLock
Command shutterlock<x> 1 locks shutter <x> movement. Any ongoing movement is still finished when called. Subsequent calls of shutter commands about movement, web buttons and shutter buttons  are blocked when shutter is locked. shutterlock<x> 0 unlocks shutter <x>.
2020-01-12 14:18:15 +01:00
Theo Arends 0e0d8190fa Change some commands displaying all items
Change commands ``Prefix``, ``Ssid``, ``StateText``, ``NTPServer``, and ``FriendlyName`` displaying all items
2020-01-12 13:10:21 +01:00
Theo Arends e7b061ce5a Fix Tuya PowerOn state
Fix Tuya PowerOn state (#7412)
2020-01-11 15:39:56 +01:00
Roman Lomonosov 20c58f5f20 Fix typo in gauge metric type (#7216) 2020-01-11 10:15:30 +03:00
Hadinger be85d3a060 Fix ``WakeUp <x>`` ignores provided value (#7473) 2020-01-10 20:54:13 +01:00
Theo Arends 2dde0329ed
Merge pull request #7466 from to-scho/hotfix/shutterbuttons_no_key_restrictions
Enable WIFI setup, restart and reset via ShutterButtons
2020-01-09 14:52:54 +01:00
to-scho a1ccd0131d Enable WIFI setup, restart and reset via ShutterButtons
When no button restriction is given and ALL shutter buttons are pressed simultaneously more than 5 times or hold simultaneously follow Tasmota's basic button behavior.
2020-01-09 14:48:23 +01:00
Theo Arends 250e3f3dc4 Fix display of wifi scan signal strength
Fix display of wifi scan signal strength
2020-01-09 14:35:03 +01:00
Theo Arends d0774995de Allow duplicate names but different channel in wifi scan
Allow duplicate names but different channel in wifi scan
2020-01-09 14:19:19 +01:00
Theo Arends a6dcf46771 Move heap to stack 2020-01-09 11:35:01 +01:00
Theo Arends a52c059cdc
Merge pull request #7465 from to-scho/hotfix/shutterbuttons_short_command
Add MQTT field to short shutterButton command syntax
2020-01-09 10:42:18 +01:00
to-scho 3675388148 Add MQTT field to short shutterButton command syntax
Align code to latest command doc suggestion
2020-01-09 10:35:27 +01:00
to-scho 2c6659fca4 Fix labeling of web buttons for shutters
Instead of switching power of the shutter relais web buttons will issue shutter commands to work right when in shuttermode 1. Up down labels arrow up/down fixed for more than one shutter.
2020-01-09 09:17:39 +01:00
Theo Arends 7c68d7a754 Improve random color cycle for scheme 4
Improve random color cycle for scheme 4 (#7273)
2020-01-08 17:45:48 +01:00
Theo Arends edf1584431 Improve random color cycle for scheme 4
Improve random color cycle for scheme 4 (#7273)
2020-01-08 16:45:43 +01:00
Theo Arends 2c23364d48 Fix DDS238-2 total energy
Fix DDS238-2 total energy (#7457)
2020-01-08 11:43:39 +01:00
Theo Arends 8db49a0fe3 Add support for tasmota-minimal.bin.gz 2020-01-07 17:28:06 +01:00
Theo Arends ca7776573a Remove debug info 2020-01-07 17:10:07 +01:00
Theo Arends 1c0db7e689 Refactor version compatibility 2020-01-07 17:01:48 +01:00
Hadinger 9d881b9701 Update IRremoteESP8266 lib updated to v2.7.2 2020-01-06 17:27:36 +01:00
Theo Arends 95fc96d563 Add support for gzipped binaries
Add support for gzipped binaries
2020-01-06 14:52:04 +01:00
Theo Arends 4a432fc2cd Fix for Domoticz color temp (#7428)
Fix for Domoticz color temp (#7428)
2020-01-04 18:24:33 +01:00
Theo Arends 61fe727685 Possible fix for Domoticz color temp
Possible fix for Domoticz color temp (#7428)
2020-01-04 17:29:04 +01:00
Theo Arends 5c97cdc12e
Merge pull request #7437 from to-scho/hotfix/shutterbuttons_inverted_command
inverted ShutterButton command
2020-01-04 16:42:00 +01:00
Theo Arends 81d3b35d0c
Merge pull request #7436 from to-scho/hotfix/shutterbuttons
Fixed exception with ShutterButton
2020-01-04 16:41:24 +01:00
to-scho f6f4a3f88f inverted ShutterButton command
As discussed in doc repo this is the code for my inverted shutter button command.
2020-01-04 16:24:45 +01:00
to-scho cea20feab3 Fixed exception with ShutterButton
When a button assigned to a shutter is pressed before any command is issued an exception occured
2020-01-04 16:10:03 +01:00
Theo Arends 49137ec79f Refactor shutters 2020-01-04 15:09:57 +01:00
Theo Arends 8be7dbe235 Fix shutter JSON 2020-01-04 14:20:41 +01:00
Theo Arends a1df6b9db9
Merge pull request #7431 from kabongsteve/shutter-improvements
Improve Shutter operation for HASS, MQTT and Internationalization
2020-01-04 13:54:58 +01:00
Hadinger aa665c1439 Add SetOption82 to limit the CT range for Alexa to 200..380 2020-01-04 11:01:44 +01:00
kabongsteve 1b451e722f Improve multiple shutter operation and MQTT 2020-01-04 13:38:56 +11:00
Hadinger 4f74c70270 Add LightPowerIRAM() for rotary interrupt handler 2020-01-03 17:57:47 +01:00
Theo Arends b82d1fdcc3 Move all Rotary interrupt code to iRAM
Move all Rotary interrupt code to iRAM (#7410)
2020-01-03 17:07:40 +01:00
Theo Arends 8c2ff7237e Fix Arduino_OTA compile error
Fix Arduino_OTA compile error (#7413)
2020-01-03 16:50:56 +01:00
Theo Arends 9249958d90
Merge branch 'development' into bmp 2020-01-03 16:31:39 +01:00
Theo Arends 319965fba2
Merge pull request #7423 from jpenninkhof/development
Reset SSD1306 before initialisation when OLED reset pin is set
2020-01-03 16:08:34 +01:00
Jan Penninkhof d15969bd1e
Reset before initialisation of the SSD1306 when OLED reset pin is set
If an OLED Reset pin has been selected using the PIN configuration, it makes sense to also send a reset signal to this pin before initialization of the display. The current value 0 doesn't send this signal, not even when a reset pin has been selected. Hence the change of value 0 into reset_pin >= 0. If no reset pin was set, the value of this variable is -1.
2020-01-03 10:07:42 +01:00
Hadinger 0ab3ba6fab Fix wrong gamma correction for Module 48 lights (PWM5 for CT) 2020-01-02 22:36:27 +01:00
Andre Thomas 06f053c172
- Add support to BMP driver to enter reset state (sleep enable) 2020-01-02 22:51:15 +02:00
Andre Thomas 6a54eef50a
- Add support to BMP driver to enter reset state (sleep enable)
- Add support to BMP driver to enter reset state (sleep enable) when deep sleep is used in Tasmota
2020-01-02 22:40:14 +02:00
Andre Thomas 356e005909
BMPxxx - Enter power on state before deep sleep 2020-01-02 22:38:18 +02:00
Theo Arends 894950ca4e Fix wrong JSON sensor message 2020-01-02 17:40:00 +01:00
Theo Arends c4f6a359a7 Add experimental support for NRF24L01 as BLE-bridge
Add experimental support for NRF24L01 as BLE-bridge for Mijia Bluetooth sensors by Christian Baars (#7394)
2020-01-02 16:58:20 +01:00
Theo Arends 5489c91172
Merge pull request #7394 from Staars/nrf24_PR
BLE-bridge for certain Mijia-Bluetooth-sensors via NRF24L01
2020-01-02 16:28:22 +01:00
Theo Arends 1e0550e750 Add command ShutterButton <parameters>
Add command ``ShutterButton <parameters>`` to control shutter(s) by to-scho (#7403)
2020-01-02 15:12:59 +01:00
Theo Arends eb7e7d45b2
Merge pull request #7403 from to-scho/feature/initial_shutter_button_support
Initial support for shutter button control
2020-01-02 14:48:13 +01:00
Theo Arends 044fae2a6e
Update settings.h 2020-01-02 14:47:33 +01:00
Theo Arends 8e3540d58d
Merge pull request #7405 from to-scho/hotfix/shutter_calibration_command_add_response
Add response to ShutterCalibration command
2020-01-02 14:40:25 +01:00
Theo Arends 7ca423da92
Merge pull request #7406 from to-scho/hotfix/shutter_pos_to_percentage_fix
Wrong shutter percentage reporting
2020-01-02 14:39:19 +01:00
Theo Arends 7ea9204425 Add some info to Prometheus file 2020-01-02 14:17:49 +01:00
to-scho a9a5c33327 Wrong shutter percentage reporting
With calibrated shutters and ShutterPosition<x> 100 the resulting position may not be 100. This is due to 2 issues. a) percentage is calculated wrong from position due to numerical precision. b) real_position and subsequently position after movement is slightly smaller than max_position.

a) is fixed here by avoiding calculation when position is equal to calibration point
b) open, not fixed here. Issue further depends on start_position which makes it hard to reproduce. Maybe 'stop_position_delta=20' results is real_position not reaching max_position.
2020-01-02 12:46:12 +01:00
to-scho f2a89605af Add response to ShutterCalibration command
When ShutterCalibration<x> is called without any arguments no response was given before that allows to read out setting like for other commands. Workaround was to call ShutterRelay<x> <y>.
2020-01-02 12:37:07 +01:00
to-scho 406a5a15f5 Initial support for shutter button control
New command "ShutterButton<x> <a> <b> <c> <d> <e> <f> <g> <h> <i> <j>" added that allows to assign a tasmota button <x> to control shutter <a>.

Single press button shutter is set to position <b>.  Double press button shutter is set to position <c>. Tripple press button shutter is set to position <d>. Hold button shutter is set to position <e>. Disabling any button action is given by <b> ... <e> equal to "-". Any press of the button while the shutter is moving will immediately stop that shutter.

Global steering of all your shutters at home is supported by MQTT. By any button action an MQTT command can be initiated to the <grouptopic> of the device. For single press button this can be enabled by <f> equal to "1". Disabling is indicated by <f> equal to "0". Double to hold actions are given by <g> ... <i>, correspondingly. When <j> is equal to "0" only "cmnd/<grouptopic>/Shutterposition<y> ..." with <y>=<x> is fired. When <j> is equal to "1" <y>=1...4 is used to control any shutter number of a tasmota device having same <grouptopic>.

Easy setup for an "up" button:
ShutterButton<x> <a> up (same as ShutterButton<x> <a> 100 50 74 100 0 0 0 1 1)
Single press will move shutter up to 100%, double press to 50% and tripple press to 74%. Holding the button for more than the hold time (SetOption32) moves all shutters with same <grouptopic> up to 100%.

Easy setup for an "down" button:
ShutterButton<x> <a> down (same as ShutterButton<x> <a> 0 50 24 0 0 0 0 1 1)
Single press will move shutter down to 0%, double press to 50% and tripple press to 24%. Holding the button for more than the hold time (SetOption32) moves all shutters with same <grouptopic> down to 0%.

Easy setup for an "updown" button:
ShutterButton<x> <a> updown (same as ShutterButton<x> <a> 100 0 50 - 0 0 0 0 0)
Single press will move shutter up to 100%, double press down to 0% and tripple press to 50%. No hold action and no other shutter control by MQTT.
2020-01-02 11:23:11 +01:00
Theo Arends 21ea26e132
Update my_user_config.h 2020-01-02 09:54:58 +01:00
Staars ee7e9078f0 initial commit 2020-01-01 19:09:20 +01:00
Theo Arends 01b5df9651 Add optional support for Prometheus
Add optional support for Prometheus using file xsns_91_prometheus.ino (#7216)
2020-01-01 17:17:10 +01:00
Hadinger 579a76ced6 Fix Improved fade linearity with gamma correction 2020-01-01 16:11:36 +01:00
Theo Arends 287b3b97f1 Fix some display issues
- Fix LCD line and column positioning (#7387)
- Fix Display handling of hexadecimal escape characters (#7387)
2020-01-01 15:13:58 +01:00
Theo Arends b05301b149 Refactor change 2019-12-31 17:24:47 +01:00
Theo Arends c13b755a59 Fix addition of backlog to IF clause
Fix addition of backlog to IF clause (#7342)
2019-12-31 17:17:30 +01:00
Theo Arends 5281725b9b Raise max valid load from 3.68 to 4kW
Raise max valid load from 3.68 to 4kW (#7155)
2019-12-31 15:34:27 +01:00
Theo Arends 8aa9109656 Happy New Year
Happy New Year
2019-12-31 14:23:34 +01:00