4019 Commits

Author SHA1 Message Date
Tester23
39c4590296 fix one leak in simulator 2025-10-18 00:16:25 +02:00
Tester23
d264e92500 better self test for enums 1.18.198 2025-10-17 23:48:06 +02:00
Tester23
42976ee561 few more fixes 2025-10-17 23:04:33 +02:00
Tester23
60a7d1371c HA ENUMS PR FIX (remove 1kB from stack) 2025-10-17 22:47:16 +02:00
MaxineMuster
1a291a82ad
fix handling of "sunset" events (#1834)
* fix handling of "sunset" events:

Old code was

if (e->sunflags & (SUNRISE_FLAG || SUNSET_FLAG)) {

This will ignore sunset events ( SUNSET_FLAG = 1 << 1)
for the or of two values ( 1 || 2) is always true
and will result in testing (sunflags & 1)
so never true for sunset (2 & 1) is false.
probaly meant

if ((e->sunflags & SUNRISE_FLAG) || (e->sunflags & SUNSET_FLAG))

but it's sufficient to check is "sunsetflags" is not 0, so simple fix:

if (e->sunflags){

Additionally added code to change liste vents ("listClockEvents") so it also shows if a time is derived from sunset or sunrise:

before the output would be like:

Info:CMD:Ev 32 - 7:31:0, days 0xff, cmd setChannel 0 0
Info:CMD:Ev 31 - 19:7:0, days 0xff, cmd setChannel 0 1

and you won't see this is an "dynamic" time. Now it's (I also used %02i to fix time format)

Info:CMD:Ev 32 - 07:31:00 (sunrise), days 0xff, cmd setChannel 0 0
Info:CMD:Ev 31 - 19:07:00 (sunset), days 0xff, cmd setChannel 0 1

* forgot to commit fix for time display using "%02i" for hours, minutes and seconds
1.18.197
2025-10-17 10:08:41 +02:00
NonPIayerCharacter
f5a3b2642b
RTL new fix OTA (#1836)
* RTL new fix OTA
clean-up workflow

* fix esp cache?
1.18.196
2025-10-17 08:44:13 +02:00
KC Stonacek
fba323f3aa
Enum examples (#1832)
* create a ChType_Enum to go with SetChannelEnum

* resolve build errors for ChType_Enum PR

* fixing build errors for simulator and others for cmd_enums.c

* added ChType_ReadOnlyEnum and assocaited enum selftests

* ChType_Enum simulation and memory error corrections

* ChType_Enum documentation updates

* ChType_Enum autoexec example corrections

---------

Co-authored-by: root <root@stonacek.nz>
Co-authored-by: kcstonacek <kcstonacek@stonacek.nz>
2025-10-16 21:01:16 +02:00
divadiow
28bc5e16e6
Update OpenTXW81X (#1831) 1.18.195 2025-10-15 15:56:56 +02:00
KC Stonacek
4ad9a85a08
Add ChType_Enum and enable SetChannelEnum. (#1830)
* create a ChType_Enum to go with SetChannelEnum

* resolve build errors for ChType_Enum PR

* fixing build errors for simulator and others for cmd_enums.c

* added ChType_ReadOnlyEnum and assocaited enum selftests

* ChType_Enum simulation and memory error corrections

* ChType_Enum documentation updates

---------

Co-authored-by: root <root@stonacek.nz>
1.18.194
2025-10-14 09:21:18 +02:00
Tester23
993a46a19d better uart debug 1.18.193 2025-10-10 19:26:49 +02:00
Tester23
5ea4a6c5b9 test 2025-10-10 19:24:35 +02:00
Tester23
1ca376e9c0 futher tests 2025-10-10 17:56:59 +02:00
Tester23
22f3571be2 self test for #1828 - it seems to pass for me 1.18.192 2025-10-10 17:44:44 +02:00
NonPIayerCharacter
6708337768
easyflash linux (#1827) 1.18.191 2025-10-10 11:23:53 +02:00
openshwprojects
c208c19f3e
ttuyamcu noread flag (#1820)
* noread

* fx

* ping pong mode for addChannel

* Update new_pins.c

* test
1.18.190
2025-10-09 15:59:44 +02:00
Jesse Campbell
883e85e4cc
Fix gamma correction (#1825)
* corrected gamma function

* uncorrect color temperature to work with new gamma

* Adjust gamma corrected expectation for self test
1.18.189
2025-10-06 09:30:16 +02:00
MaxineMuster
6279bcd07a
Add Chip internal temperature as sensor in JSON (#1821)
* Add MCU temperature to json_interface.c

* Write chip temp even if there is no other sensor present

* Send chip temperature always as sensor "ESP32"
1.18.188
2025-10-05 00:01:57 +02:00
divadiow
f60d242fbb
Flag13 - extend pin state display to PLATFORM_GPIO_MAX (#1823)
* Update http_fns.c

* Update http_fns.c

* Update http_fns.c

* Revert "Update http_fns.c"

This reverts commit c899cb45b0f982cbe65febf64c6f0b14acbc4f4f.

* Revert "Update http_fns.c"

This reverts commit 012c49c32dd752e16ed0c69d3fe0e04c44db885e.

* Update http_fns.c
1.18.187
2025-10-03 14:50:09 +02:00
NonPIayerCharacter
e930bd2d75
hlw8112 variant (#1819) 1.18.186 2025-10-02 17:09:47 +02:00
NonPIayerCharacter
1b70310eb9
TXW81X add SP0828 camera sensor (#1818)
* TXW81X add SP0828 camera sensor

* reduce freq
1.18.185
2025-10-02 00:27:38 +02:00
Nizam Moidu
4a2ae013ed
HLW8112 Driver for energy measurments (#1810)
* initial test driver for hlw8112

Signed-off-by: Nizam <code@maxters.net>

* restrict build to BK7231N
will stub other platforms later

Signed-off-by: Nizam <code@maxters.net>

* fix newer gcc build

Signed-off-by: Nizam <code@maxters.net>

* fix channel b stat restore
after all i still doesnt get pointer arithmetic

Signed-off-by: Nizam <code@maxters.net>

* clean up flashvar bk7231 still use emetering struct to store data

Signed-off-by: Nizam <code@maxters.net>

* fix OpenBK7231N_ALT build fail

Signed-off-by: Nizam <code@maxters.net>

* disable incomplete spi device raw access commands and ui

Signed-off-by: Nizam <code@maxters.net>

* remove mqtt hack for commands. leverage existing tasmota command framework

Signed-off-by: Nizam <code@maxters.net>

* missed flashvar restore

Signed-off-by: Nizam <code@maxters.net>

* disable hlw812 driver for upstream pr

Signed-off-by: Nizam <code@maxters.net>

---------

Signed-off-by: Nizam <code@maxters.net>
1.18.184
2025-09-30 15:04:15 +02:00
NonPIayerCharacter
8136ebe8d6
rda fix flash vars (#1817) 2025-09-29 11:43:47 +02:00
NonPIayerCharacter
843de0c0dd
Increase stack size for ESP8266 (#1814) 2025-09-29 11:43:40 +02:00
NonPIayerCharacter
bbbf490011
Fix workflow (#1816) 1.18.183 2025-09-29 09:24:06 +02:00
NonPIayerCharacter
cd17fbf7f5
Fix workflow (#1815) 2025-09-29 08:59:52 +02:00
NonPIayerCharacter
6083ddfca5
RDA5981 (#1813) 2025-09-29 08:41:36 +02:00
MaxineMuster
17cc6353b6
change JSON for multiple DS18B20 (#1811)
* first try to set sensor output like tasmota, but add "name"

* Use extended tasmota style: Name + Tasmota-Id

* switch to "plain" tasmota style (only tasmota-Id aditionally to temperature)

* fix numbering - Tasmota starts with "DS18B20-1" not with "DS18B20-0"
1.18.182
2025-09-29 08:22:51 +02:00
Tester23
98a115cb54 match Tasmtoas DS18B20 standard 1.18.181 2025-09-28 10:20:34 +02:00
Tester23
d0dfea0822 battery sensor publish with no bl0937 build fix by dedamraz 1.18.180 2025-09-27 18:22:02 +02:00
Tester23
cf18fb529a Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2025-09-27 18:21:06 +02:00
Tester23
b8fc1f1c93 publishDriver self test 2025-09-27 18:19:54 +02:00
MaxineMuster
c1d258fb60
Add DS1820 to JSON sensor output (#1809)
* first try for DS1820 sensors

* fix windows build

* Fix wrong comment format

* Fix code

* fix missing includes

* fix missing defines (only check if driver is included)

* Add DS1820 to sensors in "DRV_IsSensor
Fix string might be not empty

* fix output for long string in case of many DS1820 sensors
1.18.179
2025-09-27 09:15:20 +02:00
NonPIayerCharacter
744d5bc40c
Fix RTL_B binary (#1802) 1.18.178 2025-09-24 00:38:51 +02:00
NonPIayerCharacter
ce9e6c1443
txw81x configurable i2c pins and hi704 sensor (#1801) 1.18.177 2025-09-20 08:25:56 +02:00
Tester23
9748043ce8 publishDriver command 1.18.176 2025-09-17 20:28:53 +02:00
openshwprojects
81d5ffa396
StripState pin (led_enableAll state output for transistor control for… (#1799)
* StripState pin (led_enableAll state output for transistor control for DMX LED strip)

* header
1.18.175
2025-09-16 11:10:53 +02:00
NonPIayerCharacter
ea3ea1ffcf
Use cache in workflows (#1793)
* Cache gcc

* cache esp32 toolchains

* skip
1.18.174
2025-09-15 13:17:52 +02:00
openshwprojects
38f4d51557
finalizing dmx , aliases
* ENABLE DMX on ESP

* test

* s

* Update hal_uart_espidf.c

* Update obk_main.cmake

* w

* test

* Update hal_uart_espidf.c

* Update drv_dmx512.c

* test

* test

* test

* w

* t

* c

* t

* test

* T

* Update drv_dmx512.c

* test

* test

* try flush

* try wait

* ticks w

* t

* fx

* 100 ms

* SIM fx

* Update cmd_newLEDDriver.c

* test 2x

* tests

* fixes

* free

* fix

* misc

* b

* hal

* s

* Update workflow.yaml

* pin

* fin

* test

* Update hal_uart_espidf.c

* t
2025-09-15 13:17:21 +02:00
openshwprojects
481cc0ede2
DMX works on ESP32 LilyGO, other platforms requires porting code to change baudrate
* ENABLE DMX on ESP

* test

* s

* Update hal_uart_espidf.c

* Update obk_main.cmake

* w

* test

* Update hal_uart_espidf.c

* Update drv_dmx512.c

* test

* test

* test

* w

* t

* c

* t

* test

* T

* Update drv_dmx512.c

* test

* test

* try flush

* try wait

* ticks w

* t

* fx

* 100 ms

* SIM fx

* Update cmd_newLEDDriver.c

* test 2x

* tests

* fixes

* free

* fix

* misc

* b

* hal

* s

* Update workflow.yaml

* pin

* fin

* test

* Update hal_uart_espidf.c
1.18.173
2025-09-14 21:07:24 +02:00
MaxineMuster
c5116a4f2b
fix getcommands.js (#1788)
* fix getcommands.js

Fix parsing
don't overwrite source files but generate alternate file

* Fix comments so "getcommands.js" won't complain.
Hpoe I got descriptions right ...

* Some more comments to fill "qqq" fields ...

* Fix getcommands.js generatind fn-entries for registered commands

Fix all source files with wrong "NULL);" as fn

* add some more tests to getcommands.js to verify commands:
	check filename of command
	check fn called
some more fixes to documentation commands as result from above tests
1.18.172
2025-09-09 21:53:07 +02:00
openshwprojects
7f5f83b25b
publish whole state on ha online (#1791)
* publish whole state on ha online

* fx
1.18.171
2025-09-07 10:03:40 +02:00
Tester23
9cc5519b7c skip ping watchdog commands if pwatchdog is not enabled 1.18.170 2025-09-06 11:01:51 +02:00
openshwprojects
f68c6ac9f2
al;low empty entries in led remap (#1789)
* test

* some verification

* ha disc?
1.18.169
2025-09-06 10:30:11 +02:00
Tester23
78ce33f01f prepare for I2C LED channels skip 1.18.168 2025-09-05 18:58:18 +02:00
NonPIayerCharacter
e85b9a67be
small update (#1786) 1.18.167 2025-09-05 08:58:42 +02:00
MaxineMuster
6ee5729064
Changing HAL_Delay_us for Beken (#1727)
* Apply changes for Bekens HAL_Delay_us() as proposed in #1579 by @rpv-tomsk
Add TEST command to simply test usleep on a given pin

tested on BK7231N to work with both drivers (I am aware of) using HAL_Delay_us
DS1820 and DHT (tested on DHT11 only)

Timing on BK7231N looks really good with this driver, at least for usleep > 6 its allways 2 us more:

tested	read by analyzer

500	502
200	202
100	102
 50	 52
 20	 22
 10	 12
  6	  8
  4	  7

Now it's time to test on other Beken platforms, too

* Not working on BK7238 - trying to remove special case for lower usleep, since times are way to small here

* still not working on BK7238 - usleep ok fur > 50 , will not be below 30us according to my tests
so try to use the other approach for 7238, too

* No success on BK7238 - trying once again to use "usleep()" to find a factor with analyzer.

* try factor 6 for BK7238 (HAL_Dely_us(x) -> usleep(6*x))

* Testing factor 6.4 for BK7238

* Fixing BK7252  build not working, simply use original for code

* Restore original code for BK7252

* Change timing for BK7525

* Next try to adjust factors for BK7525

* fix typo

* Add adjustment for powersave on BK7238

* Update obk_config.h - disable ENABLE_DS1820_TEST_US
1.18.166
2025-09-04 18:05:57 +02:00
NonPIayerCharacter
ea8f7e2617
Beken 3.0.78 (#1775)
* 3.0.78

* mbedtls play

* bk7252 tuya
1.18.165
2025-09-03 13:50:26 +02:00
NonPIayerCharacter
0d007112b1
TXW817 support (#1779)
* txw81x base no makefile

* txw81x

* gpio fix?

* non-working ota

* mic
2025-09-03 11:46:06 +02:00
NonPIayerCharacter
948237869f
LN882H IR (#1783) 2025-09-03 11:45:24 +02:00
NonPIayerCharacter
719f7dd701
Update ESP-IDF (#1784) 2025-09-03 11:45:04 +02:00