Commit Graph

33 Commits

Author SHA1 Message Date
openshwprojects
72eef7225c impr asmota device groups 2022-06-09 04:55:54 +02:00
openshwprojects
c68c98d2c6 tasmota device grups p1 2022-06-09 04:30:17 +02:00
openshwprojects
6e6d9ecbee fx p3 2022-06-05 10:08:15 +02:00
openshwprojects
3042cdfa85 fx p2 2022-06-05 10:07:57 +02:00
openshwprojects
c49558a2fa add missing http display bl0937 2022-06-05 10:04:26 +02:00
openshwprojects
5156e55a61 fx 2022-06-05 08:11:03 +02:00
openshwprojects
cff8c71b4f now you can choose bl0937 pins 2022-06-05 06:41:49 +02:00
openshwprojects
93d08a01e5 mqtt callbacks for led driver, reorganize some things, do not spam mqtt for not needed values 2022-06-02 11:42:59 +02:00
Richard Harman
f156c5fecd fix EOL whitespace 2022-05-29 09:32:47 -04:00
Richard Harman
fdbf665cfc fix line endings 2022-05-29 09:32:14 -04:00
openshwprojects
237043cbc1 bl0937 measurements output (still without proper timer, this is left to do) 2022-05-25 22:04:27 +02:00
openshwprojects
d38973ab48 BL0937 initial test, with a lazy approach, needs to be changed to reliable timer 2022-05-23 21:20:35 +02:00
openshwprojects
adebd9b854 est final meas 2022-05-23 18:21:39 +02:00
openshwprojects
5c44904228 t2 2022-05-23 18:11:18 +02:00
openshwprojects
f6098421db test 2022-05-23 18:10:42 +02:00
openshwprojects
6b119bc144 experiment with bl interrupts 2022-05-23 17:51:51 +02:00
openshwprojects
e614a8ad1e multicast recv 2022-05-16 15:27:22 +02:00
openshwprojects
4c5c96ad42 dgr stub - multicast udp code 2022-05-14 00:13:44 +02:00
openshwprojects
ef1b6fce88 low/mid/hi channel type for fan 2022-05-07 15:01:29 +02:00
openshwprojects
386e14adb5 tuyaMCU var type can be a string 2022-05-07 07:16:20 +02:00
openshwprojects
e95d4695e0 introduce command flags system, mark command sources, warning fixes 2022-05-05 23:04:18 +02:00
openshwprojects
55fe63f1f5 tuyamcu fake packet tool and stub for v0 protocol 2022-05-02 21:13:50 +02:00
openshwprojects
4318c95882 decode product information tuyamcu, use proper define 2022-04-29 18:38:22 +02:00
openshwprojects
5ac8bb7d62 potential buffer overflow fix in TuyaMCU 2022-04-25 05:02:37 +02:00
heiko
485214e38e revert adding CHANNEL_SetEx function
* when setting a channel's value, store it as prevValue in tuya mapping.
  If we see this value again in TuyaMCU_OnChannelChanged, just do not
  propagate this value to TuyaMCU again.
2022-04-23 18:31:30 +02:00
heiko
7ca1849a1f fix typo in comment 2022-04-23 17:58:47 +02:00
heiko
1d827801df do not run CHANNEL_OnChanged, after updating a channel with a TuyaMCU data points value
* TuyaMCU dimmers like moes smart dimmer module 105 are controlled by a
  push button. After long button press, TuyaMCU automatically starts dimming slowly
  from low to high and back to low. This is repeated until the button is released,
  selecting the current dimmer level.
  While cycling thorugh the dimming range, TuyaMCU reports the current dimming
  level in short intervals. We update our Channel with this value, but we must not
  run CHANNEL_OnChanged, as this will set the same value to TuyaMCUs data point again.
  However, TuyaMCU did already change its data point value internally, so we would
  set an old value, which leads to flicker on dimming.
2022-04-23 16:29:50 +02:00
heiko
7f3723ee3a add support for TuyaMCU dimmers
* add Tuya_SendState (and typed variants) to set value of a data point
* add tuy sendQueryState command to query state of TuyaMCU's data points
* add a new channel type "dimmer" (normalized value from 0..100)
* run TuyaMCU_OnChannelChanged, whenever a Channel is set to a new value:
  This updates TuyaMCU's data point linked to the channel
* map normalized dimmer value (0..100) to TuyaMCU's dimmer range
  (tuyaMcu_setDimmerRange)
2022-04-23 16:14:07 +02:00
openshwprojects
50e764fea2 fixes 2022-04-22 15:00:22 +02:00
openshwprojects
e9521e4b44 unfinished events prototype 2022-04-22 09:58:23 +02:00
openshwprojects
ee41615828 rewrote BL0942 driver to send only substantial changes (otherwise we get MQTT overheat) 2022-04-20 01:20:45 +02:00
openshwprojects
7ffa51c003 clear up reduntant headers 2022-04-15 20:49:49 +02:00
openshwprojects
73f4fb879d reorganize p1 2022-04-15 11:52:36 +02:00