Commit Graph

220 Commits

Author SHA1 Message Date
Theo Arends
7ecc752c11 Remove command SetOption2 2019-10-22 18:34:41 +02:00
Theo Arends
9f55ab6a2a Add absolute PowerDelta
Add absolute PowerDelta using command PowerDelta 101..32000 where 101 = 101-100 = 1W, 202 = 202-100 = 102W (#5901)
2019-10-18 16:53:30 +02:00
Theo Arends
63320f76f8 Prep for PowerDelta change 2019-10-18 15:33:58 +02:00
Theo Arends
84fe7b8e76 Bump version to 6.6.0.20
Add command SetOption65 0/1 to disable (1) fast power cycle detection fixing unwanted brownout trigger
2019-10-18 15:18:39 +02:00
Bastian Urschel
672ea3d7e9 Fixes the funcionality of command "Sensor20" which was missing after merge #6673.
With command "Sensor20" you can now set the starting offset at runtime. The polling interval still depends on the tele_period.
2019-10-18 10:32:48 +02:00
Theo Arends
44be3366aa Clean up 2019-10-14 16:47:47 +02:00
Theo Arends
5527f424a0 Add deep sleep support
Add define USE_DEEPSLEEP and command DeepSleepTime 0 or 10..86400 (seconds) to enter deepsleep mode (#6638)
2019-10-14 16:12:59 +02:00
Shantur Rathore
01f6df9161 Add DimmerRange command and support longer dimmer ranges. Fixes #6605
More and more serial dimmers are coming up with different dimming ranges, implemented DimmerRange command to make this setting generic and bring support for 2 byte dimming ranges which isn't supported by SetOptions.
2019-10-10 15:53:01 +01:00
pablozg
0674971f2e Fix energyReset command issue #6561 2019-10-04 19:19:48 +02:00
Theo Arends
37fc7d2259 Add command SetOption71 for DDS238-2
Add command SetOption71 0/1 to switch between different Modbus Active Energy registers on DDS238-2 energy meters (#6531)
2019-10-02 11:24:51 +02:00
Theo Arends
aa5b5e891e Add initial support for PCF8574 I2C I/O Expander
Add initial support for PCF8574 I2C I/O Expander (currently output only) by Stefan Bode
2019-10-01 16:33:39 +02:00
Theo Arends
e40475b563 Add initial support for shutters
Add initial support for shutters by Stefan Bode (#288)
2019-09-29 18:00:01 +02:00
Theo Arends
b7aa3cd884 Add initial support for MQTT logging
Add initial support for MQTT logging using command MqttLog <loglevel> (#6498)
2019-09-27 18:13:00 +02:00
Theo Arends
5bd19d54db Change command Tariffx to allow time entries like 23 (hours), 1320 (minutes) or 23:00
Change command Tariffx to allow time entries like 23 (hours), 1320 (minutes) or 23:00. NOTE: As this is development branch previous tariffs are lost! (#6488)
2019-09-25 14:24:49 +02:00
Theo Arends
957272dca4 Bump version to 6.6.0.13
* Add command EnergyReset4 x,x to initialize total usage for two tarrifs
 * Add command EnergyReset5 x,x to initialize total export (or production) for two tarrifs
 * Add command Sensor34 8,0 and Sensor34 8,1 to disable/enable JSON message on weight change over 4 gram
2019-09-22 12:53:15 +02:00
pablozg
254f3f3f6c Change Domoticz P1 smart meter sensor total usage logic, issue #6444 2019-09-20 12:59:34 +02:00
Theo Arends
4b647928aa Bump version to 6.6.0.12
* Redesign command Tariff to now default to 0 (=disabled) and allowing to set both Standard Time (ST) and Daylight Savings Time (DST) start hour (#6282)
 *  Commands Tariff1 23 = Tariff1 ST, Tariff2 7 = Tariff2 ST, Tarriff3 22 = Tarrif1 DST, Tariff4 6 = Tariff2 DST, Tariff9 0/1 = Weekend toggle
2019-09-10 16:18:23 +02:00
Theo Arends
0e3a88bbe2 Add Energy Export if available
Add Energy Export if available (#6282)
2019-09-10 12:31:08 +02:00
Theo Arends
3d9a73f826 Add support for up to 4 INA226 Voltage and Current sensors
Add support for up to 4 INA226 Voltage and Current sensors by Steve Rogers (#6342)
2019-09-08 11:26:54 +02:00
srodgers
27ecd09e9d Update from testing branch 2019-09-07 15:30:51 -07:00
srodgers
4a41c13738 Merged from upstream 2019-09-07 14:38:57 -07:00
srodgers
0a9166dde7 Update files 2019-09-07 14:28:08 -07:00
srodgers
e620f75785 Remove extra space 2019-09-05 08:25:03 -07:00
srodgers
553c5e4a9c Sync to testing branch 2019-09-05 08:20:40 -07:00
Theo Arends
a01de9a9b2 Remove obsolete Tuya code
Remove obsolete Tuya code
2019-09-05 16:56:02 +02:00
Theo Arends
282591a0b2 Bump version to 6.6.0.10
Redesign Tuya support by Shantur Rathore (#6353)
2019-09-05 10:41:08 +02:00
Theo Arends
0145c86fe0
Update settings.h 2019-09-05 10:02:42 +02:00
Shantur Rathore
efd1870d5e Tuya: Make Tuya Mcu implementation more configurable.
More and more Tuya MCU based devices are coming in the market and people requesting to support them. This patch makes Tuya module more configurable and easier to add new functionalities. Its not just a dimmer or a switch anymore.

After this Patch Tuya MCU module has a list of supported functions and the user would need to map the functionId to dpId of their device. Once mapped correctly the Tuya module will take care for handling proper function for dpId.

Currently functions supported are

1. Relays1 to 8 : FunctionID 11 to 18
2. Dimmer : FunctionID 21
3. Power ( Deca Watt )  : Function ID 31
4. Current ( milli Amps ) : Function ID 32
5. Voltage ( deca Volts ) : Function ID 33

The changes are

- Use a TuyaMCU command to map DPs to Functions instead of many different SetOptions. SetOption41, 44, 45, 46, 65 won't be needed after this patch.
- TuyaMCU command takes argument like `11,1` which means Map Function id 11 (Relay1) to DPID 1
- Migrates old settings flags and options to new TuyaMap command
2019-09-04 17:29:44 +01:00
Theo Arends
af1edb0cdb Add command Time 1/2/3 to select JSON time format ISO + Epoch, ISO or Epoch
* Add time to more events (#6337)
 * Add command Time 1/2/3 to select JSON time format ISO + Epoch, ISO or Epoch
2019-09-04 18:06:34 +02:00
srodgers
407be4075f Add ina226 driver 2019-09-02 14:53:12 -07:00
Theo Arends
9af67a5278 Bump version to 6.6.0.9
Change theoretical baudrate range to 300..19660500 bps in 300 increments (#6294)
2019-08-28 12:02:27 +02:00
Theo Arends
f31b903fab Bump version to 6.6.0.8
* Add Tuya Energy monitoring by Shantur Rathore
 * Add phase 1 Domoticz P1 Smart Meter support using energy sensors handled by xdrv_03_energy.ino based on an idea by pablozg
 *   Add commands Tariff1 0..23 (start Off-Peak hour), Tariff2 0..23 (start Standard hour) and Tariff3 0/1 (Saturday and Sunday Off-Peak)
2019-08-27 17:01:12 +02:00
Theo Arends
6c905b65a4 Expand Settings area to 4k for future use
Expand Settings area to 4k for future use
2019-08-25 14:58:45 +02:00
Shantur Rathore
1c7fd88ec4 Tuya: Rename tuya_show_dimmer to tuya_disable_dimmer to make the option clear.
By default the option is set to 0 in which case the tuya serial will act as dimmer
When its set to 1 tuya serial will disable dimmer functions.
2019-08-23 10:02:24 +01:00
Theo Arends
9746489380 Bump version to 6.6.0.5
* Add command WebSensor<sensor number> 0/1 to control display of sensor data in web GUI (#6085)
 * Change some table locations from RAM to Flash
2019-08-16 16:12:33 +02:00
Shantur Rathore
0235bc0f8c Tuya Dimmer: Make dimmer lower limit optional.
Not all Tuya dimmers have a lower limit of 10% (25)
2019-08-14 14:52:37 +01:00
Theo Arends
e2040b70de Refactor Sonoff Bridge
Refactor Sonoff Bridge
2019-08-13 16:10:47 +02:00
Theo Arends
afb39aa680 Add support for CHIRP soil moisture sensor by Christian Baars
Add support for CHIRP soil moisture sensor by Christian Baars
2019-08-07 12:08:13 +02:00
Stephan Hadinger
81ca44dba2 Add SetOption68 to enable multi-channel PWM instead of a single light (#6134) 2019-08-06 10:57:50 +02:00
Theo Arends
37b1c25881 Refactor core command structure
Refactor core command structure
2019-07-27 11:13:41 +02:00
Theo Arends
9bcba3772e Refactor Counter commands
Refactor Counter commands
2019-07-26 10:21:36 +02:00
Theo Arends
1068d59a63 Extent commands Var and Mem with option to show all parameters at once
Extent commands Var and Mem with option to show all parameters at once (#6107)
2019-07-24 11:10:15 +02:00
Theo Arends
546653a8f2 Add display features
* Add command DisplayWidth to set pixel width on supported devices
 * Add command DisplayHeight to set pixel height on supported devices
 * Add Oled reset GPIO option "OLED reset"
2019-07-23 14:05:42 +02:00
Theo Arends
49022d0320 6.6.0.2 Add support for Sonoff iFan03 as module 71
Add support for Sonoff iFan03 as module 71 (#5988)
2019-07-14 15:23:02 +02:00
thirug010
943dc524ea Update Code for Issue #6066- Dimmer Value not equal to Rx Dim State #
Change Summary

1. Added Option to select Dimmer Range (1-100 and 1-255) through SetOption66 (default is 1-100 for legacy device support

2. Updated Dimmer code to set range based on the option66 100 / 225
2019-07-11 22:28:08 -05:00
Theo Arends
53ecde7637 Add command SetOption65 0/1 and more Tuya Serial based device support
Add command SetOption65 0/1 and more Tuya Serial based device support (#5815)
2019-06-08 11:38:45 +02:00
Theo Arends
aaacb20d55
Merge pull request #5815 from thirug010/development
New Tuya Serial Based Devices support
2019-06-08 11:17:27 +02:00
Theo Arends
56615dce4e Add command AdcParam
Add command AdcParam to control ADC0 Temperature and Light formula parameters
2019-05-24 12:28:09 +02:00
thirug010
c55ad6bd39
Merge branch 'development' into development 2019-05-22 01:30:43 -05:00
Theo Arends
7204f85a3a Add support for SPS30 Particle sensor thanks to Gerhard Mutz (#5830)
Add support for SPS30 Particle sensor thanks to Gerhard Mutz (#5830)
2019-05-21 10:39:54 +02:00