Commit Graph

3460 Commits

Author SHA1 Message Date
openshwprojects
9659f1d9aa Update obk_config.h 2024-06-21 18:28:03 +02:00
Tester23
a70bd96ee1 display readonlylowmidhigh 1.17.621 2024-06-20 00:26:44 +02:00
Tester23
688f162afd beter self test 1.17.620 2024-06-19 20:47:02 +02:00
Tester23
d4a430b395 script expression fix (for added self test) 1.17.619 2024-06-19 20:28:03 +02:00
Tester23
783eb96264 self test for sign and value 2024-06-19 20:27:17 +02:00
CrewMdk
d62dab9310 Text correction in drv_main.c (#1276) 1.17.618 2024-06-19 16:03:10 +02:00
openshwprojects
c647e07be1 Update drv_bmpi2c.c 1.17.617 2024-06-17 23:37:35 +02:00
openshwprojects
be02f3eef6 Update README.md 1.17.616 2024-06-17 01:08:33 +02:00
openshwprojects
d407ec5ba4 Update README.md 1.17.615 2024-06-16 18:52:22 +02:00
CrewMdk
2c6686e8ac Publish IP and SSID to Home Assistant (#1262) 1.17.614 2024-06-14 08:34:02 +02:00
Pavel Rochnyak
0ea29bb7b4 BL602: WiFi AP Scan (#1269) 1.17.613 2024-06-12 23:57:51 +02:00
openshwprojects
59fcf19bbd SM15155E support
SM15155E support
1.17.612
2024-06-12 10:54:36 +02:00
MaxineMuster
aae07cf27b simple addition to allow clear text passwords for WiFi (#1245) 1.17.611 2024-06-11 11:06:55 +02:00
NonPIayerCharacter
9c58f9dbdb add bme280 humidity (#1231)
Co-authored-by: openshwprojects <85486843+openshwprojects@users.noreply.github.com>
1.17.610
2024-06-09 19:17:58 +02:00
Tester23
e4b870a23b fix 1.17.609 2024-06-08 18:56:19 +02:00
Tester23
89d2a34a00 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 1.17.608 2024-06-08 18:28:10 +02:00
Tester23
5642d112fa SM16703P_SendBytes 2024-06-08 18:27:53 +02:00
openshwprojects
ed9dd2a3f5 Update README.md 1.17.607 2024-06-06 10:25:43 +02:00
openshwprojects
2c17531188 Update workflow.yaml 1.17.606 2024-06-05 17:28:23 +02:00
openshwprojects
5412a1893f Update .releaserc.yaml 2024-06-05 17:26:11 +02:00
Tester23
3aad059812 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 1.17.605 2024-06-05 16:18:43 +02:00
openshwprojects
ceb7fabcac Update .releaserc.yaml 2024-06-05 16:18:24 +02:00
Tester23
89382b4298 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2024-06-05 16:17:08 +02:00
Tester23
72b8f68d56 sub 2024-06-05 16:16:59 +02:00
openshwprojects
9cdc340e9a Update workflow.yaml 2024-06-05 16:16:03 +02:00
Tester23
182eefbea9 self test for echo cmd 2024-06-05 16:14:48 +02:00
Tester23
3099828870 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2024-06-05 16:14:28 +02:00
Tester23
26470dc762 add dht to tas json 2024-06-05 16:14:18 +02:00
Tester23
c5b92c0625 pass to makefile 1.17.604 2024-06-05 10:29:33 +02:00
openshwprojects
206e9410e7 Update README.md 1.17.603 2024-06-02 18:42:03 +02:00
openshwprojects
10c28a0e95 Update README.md 2024-06-02 18:40:38 +02:00
NonPIayerCharacter
06ddd882e1 Driver for BMP085, 180, 280, and BME280, 680, 688. (#1242)
* Driver for BMP085, 180, 280, and BME280, 680, 688.

* Disable by default

* Add bmp280 samples
1.17.602
2024-06-01 17:09:37 +02:00
Tester23
768ea19ea8 pixelanim - allow RGB IC + PWM CW combo 1.17.601 2024-05-31 15:48:47 +02:00
Tester23
3cf433c7eb pixelanim - only highlight if animation is active 2024-05-31 15:39:17 +02:00
openshwprojects
369bb40f98 Update obk_config.h (#1253) 1.17.600 2024-05-30 22:58:05 +02:00
Tester23
894c9e3397 dgr test 1.17.599 2024-05-30 22:39:04 +02:00
Tester23
041e316cf5 tuyamcu will reply to 0x04 1.17.598 2024-05-30 15:38:49 +02:00
Tester23
be04de6967 let dgr check also for buttons 1.17.597 2024-05-29 22:50:17 +02:00
openshwprojects
1b996bf247 enable Tasmtoa Device Groups on LN882H
* ln-dgr

* Update OpenLN882H

* tyoew

* Update OpenLN882H

* Update OpenLN882H

* missing define

* Update OpenLN882H

* Update OpenLN882H

* better defines

* ADC button define
1.17.596
2024-05-29 13:12:51 +02:00
Tester23
ccb45f89f5 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 1.17.595 2024-05-28 07:51:58 +02:00
Tester23
80c209ca57 0x03 tuyamcu command self tset 2024-05-28 07:51:41 +02:00
MaxineMuster
ca6983fa70 let echo return expanded arguments (#1249)
* let echo return expanded arguments

* introduce echoval command to print expanded values

* Change Tokenizer_TokenizeString():
With flag "TOKENIZER_FORCE_SINGLE_ARGUMENT_MODE" also expand full command line to g_argsExpanded.
So g_argsExpanded[0] will contain full expanded line and "Tokenizer_GetArg(0)" will return the full string.
1.17.594
2024-05-26 14:55:45 +02:00
Tester
5009cff8aa add buzzer sample to docs (not refreshed) 1.17.593 2024-05-26 14:31:16 +02:00
bvelush
dda037bc7d Fix for Issue 808: Door/Window sensor lost data after deep sleep (#1176)
* Fix for Issue 808

Queueing sensor state changes while device is offline and publishing them as MQTT connection is established.

* minor typo fixes

* fix network data log (#1175)

* Add watchdog for LN882 (#1179)

* Fix index page performance for LN882H (#1180)

* Use ISO time everywhere (#1181)

* Fix windows build

* Tokenizer_GetArgFloatDefault

* support dpID mult for TuyaMCU

* add self test for TuyaMCU mult

* fix incorrect naming (cosmetic change only)

* update docs

* allow auto creation of tuya dpid storage

* add requestest flag for ac dir

* Add AHT10/AHT2X/AHT30 I2C driver (#1187)

* add aht sensor driver

* disable by default

* revert comment

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* add self tests for addChangeHandler Power > 60 SetChannel 10 1234

* voltage change self tests

* Update selftest_energyMeter.c

* Update README.md

* Update README.md

* allow SM16703P driver compilation on windows (self test stub)

* per pixel led self test base

* WS2812 stub for simulator

* add reverse decoding of WS2812 pixels

* more ws self test

* add a link between simulator and per pixel drv

* adding deduplication of similar messages

* code cleanup

* Update OpenLN882H

* LN882H enable or disable sleep mode while using a PowerSave (#1186)

* add second state for PowerSave with LN882H to enable sleep mode

* delayed powersave - in sta connect callback - not tested

* Moved code for delayed application of changes to PowerSave settings

* Delaying only settings if WiFi is not connected

---------

Co-authored-by: Tester23 <openshwprojects@gmail.com>

* better pi9xel self test, fix DDP define

* adding some comments, fixing typo

* declaring variables

* Set DNS hostname for ln882h (#1189)

* pixelanim (#1192)

* px

* it animates

* h

* bridge per pixel to LED driver

* link to led driver

* fire

* fixes

* tr

* pwm freqq (#1203)

* rename pwm freq command (#1204)

* pwm freqq

* rename

* Update OpenLN882H

* silence messages on each spi send in drv_spidma.c

* Update drv_pixelAnim.c

* hide CW bar fdr SM16703P

* pixelanim speed p1, reorganize

* add shooting star

* make LED basecolors public

* add command to change LED anim

* spoeed cmd

* Remove strftime to save space (#1210)

strftime takes a lot of space and we only use simple number printing for it. Should save 8kb

* Enable calendar events for bl602 (#1208)

* respect OBK_DISABLE_ALL_DRIVERS

* fix typo pointed by Wolfieee

* fix  buffer for pixelanim

* add pixe;lanim to prtoject

* add Motion channeltype

* self test for motion

* hass discovery test for illuminance

* try BL602 with ENABLE_EXPAND_CONSTANT	1 (#1212)

* add support for 7 segment driver HD2015E (#1214)

qqq

* second fix for channel type priority

* includfe HD2015 in prj

* Update drv_tm_gn_display_shared.c

* Update drv_tm_gn_display_shared.c

* Update drv_tm_gn_display_shared.c

* cosmetic rename

* Publish file (#1221)

* fix broken DSTime change at runtime

* publishfile

* ENABLE_LITTLEFS

* fix HASS discovery with unusually long name

* add test for HASS discovery with unusually long name

* docs

* docs

* Fix unknown method handling, lock on logging (#1224)

* extend doorsensor DSTime command

* add door sensor self test

* a bit better docs

* docs

* docs

* some more docs work

* optimized pins page? - part 1

* filter

* pins page is now down to 8kb (was 90kb, then 10kb)

* Implement LittleFS for LN882H - only first basic testing from WebApp … (#1191)

* Implement LittleFS for LN882H - only first basic testing from WebApp !!!!

- need to add littlefs-source to sdk/OpenLN882H/project/OpenBeken/CMakeLists.txt

Remarks:
I had to move the import part of LittleFS

in various cmd-source files to nearer to the top of the files

otherwise I had very strange (false!!!) compiler errors regarding
"conflicting types" for equal(!) typed prototypes and functions or even variables in .h and .c files

e.g.:

/OpenBK7231T_App/sdk/OpenLN882H/project/OpenBeken/app/src/cmnds/cmd_main.c:47:6: error: conflicting types for 'g_powersave'
   47 | bool g_powersave;
      |      ^~~~~~~~~~~
In file included from /OpenBK7231T_App/sdk/OpenLN882H/project/OpenBeken/app/src/cmnds/cmd_local.h:4,
                 from /OpenBK7231T_App/sdk/OpenLN882H/project/OpenBeken/app/src/cmnds/cmd_main.c:6:
/OpenBK7231T_App/sdk/OpenLN882H/project/OpenBeken/app/src/cmnds/cmd_public.h:33:13: note: previous declaration of 'g_powersave' was here
   33 | extern bool g_powersave;
      |             ^~~~~~~~~~~
/OpenBK7231T_App/sdk/OpenLN882H/project/OpenBeken/app/src/cmnds/cmd_main.c:47:6: error: conflicting types for 'g_powersave'
   47 | bool g_powersave;
      |      ^~~~~~~~~~~

Also I had to disable other drivers, or the OTA image would not be flashed (after rebbot old version was still present)
Is there a size limit to respect for OTA? the size was well below the shown OTA-size of 0xAA000 (696320k if I calculated correct)

* Moved "bool" from local int definition to stdbool.h
So I got rid of all those "conflicting types" errors.

Thanks to @giedriuslt for pointing this out!

This commit also includes a define of "ENABLE_TEST_COMMANDS" for the littlefs tests (lfs_test<n>).

* Restored all #defines to 1
Last image loaded without any problem

* Update cmd_main.c - temporarily removed one define to be able to sync to master

Changed 
#if (defined WINDOWS) || (defined PLATFORM_BEKEN) || (defined PLATFORM_BL602) || (defined PLATFORM_LN882H)
back to
#if (defined WINDOWS) || (defined PLATFORM_BEKEN) || (defined PLATFORM_BL602)

in src/cmnds/cmd_main.c

* Update cmd_main.c

Restored change in cmd_main.c after syncing

* Update user_main.c

Changed user_main.c to allow SVM_RunThreads() for LN882H with LittleFS

* Merged updated OpenLN882H

* Disable building test commands in obk_config.h

* Also "#define ENABLE_EXPAND_CONSTANT 1" to allow more advanced scripting

* Added LN882H to some more "#if defined" lines to allow scripting ...
Added BL602 in two lines missing this platform, too

---------

Co-authored-by: openshwprojects <85486843+openshwprojects@users.noreply.github.com>

* door sensor clear self test

* allow bl602 to use constants in publishFloat ant similar (#1229)

It was under platform define, should be fixed to proper define

* better door sensor clear self test

* test command with spaces - ok?

* fix and selftest - backlog should not return non-zero value when commands list has empty command

* Stack size for BL is not enough to execute backlog commands (#1226)

Specifically "Save, Reset SVM and run file as script thread" crashes the chip due to stack overflow

* move more test commands to... cmd_test.c

move more test commands to... cmd_test.c

* correct BMP280.c startdriver example, add bmp280.h detected flash ID output, add BME680 detection (only) (#1230)

* testBMP

* correct startdriver example 8bitaddress

* add BME680 chip ID, add BME680 chip detection

* correct BME680_CHIP_ID

* Update obk_config.h

---------

Co-authored-by: openshwprojects <85486843+openshwprojects@users.noreply.github.com>

* extend pin cfg page: (#1228)

introduce a function te get number of channels for an IO role
in JS code generate all elements, but hide and disable unused fields. This way the should not count for POST action

* Update workflow.yaml

* Update workflow.yaml

* few more self tests for command backlog

* Update workflow.yaml (#1234)

Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "OpenBK7231T_App_1232_merge_36e61294cc71".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

* Update workflow.yaml (#1235)

both upload and download artifact should be v4...

* Update workflow.yaml

* negation method self test

* Drawers (#1232)

* drawers draft

* test

* support post as well

* Update drv_drawers.c

* ambient

* add led_ambient

* foolproof compile

* disable drivers before merge

* allow disabling Tasmota JSON API (#1236)

* allow disabling Tasmota JSON API

* test enable

* Update README.md

* add smart LED drawers project information

* Fix possible wrong index /  shorten JS code (#1238)

* extend pin cfg page:
introduce a function te get number of channels for an IO role
in JS code generate all elements, but hide and disable unused fields. This way the should not count for POST action

* Fix for possible wrong index when pin can't be PWM
shorten code

---------

Co-authored-by: openshwprojects <85486843+openshwprojects@users.noreply.github.com>

* refresh docs

* reenable tasmota json on simulator

* add a waitfor channel self test

* add bInv to TuyaMCU

* add bInv selftest

* add mult self test for tuyamcu

* cosmetic change only - rename to dpID

* selftest vcp constants

* self test - turn off script for a user - part 1

* Publish internal temperature to Home Assistant (#1243)

* allow auto wake up of DoorSensor

* Use functional define for constant expansion (#1244)

This fixes constants in publishFloat for LN882H and publishInt for BL602 and LN882H

* Update README.md

* Fix for Issue 808

Queueing sensor state changes while device is offline and publishing them as MQTT connection is established.

* minor typo fixes

* adding deduplication of similar messages

* code cleanup

* adding some comments, fixing typo

* typo fixes

---------

Co-authored-by: giedriuslt <123905703+giedriuslt@users.noreply.github.com>
Co-authored-by: Tester23 <openshwprojects@gmail.com>
Co-authored-by: NonPIayerCharacter <18557343+NonPIayerCharacter@users.noreply.github.com>
Co-authored-by: openshwprojects <85486843+openshwprojects@users.noreply.github.com>
Co-authored-by: MaxineMuster <146550015+MaxineMuster@users.noreply.github.com>
Co-authored-by: divadiow <62958974+divadiow@users.noreply.github.com>
Co-authored-by: DeDaMrAzR <43572083+DeDaMrAzR@users.noreply.github.com>
2024-05-24 13:50:04 +02:00
openshwprojects
84f117629c Update README.md 1.17.592 2024-05-21 21:42:26 +02:00
giedriuslt
0fe3299020 Use functional define for constant expansion (#1244)
This fixes constants in publishFloat for LN882H and publishInt for BL602 and LN882H
1.17.591
2024-05-20 23:49:56 +02:00
Tester23
f850ccdd0e allow auto wake up of DoorSensor 1.17.590 2024-05-20 15:50:08 +02:00
giedriuslt
e609f37264 Publish internal temperature to Home Assistant (#1243) 1.17.589 2024-05-20 00:49:45 +02:00
Tester23
a8afa673c6 self test - turn off script for a user - part 1 1.17.588 2024-05-18 10:08:24 +02:00
Tester23
e8e4d19a72 selftest vcp constants 1.17.587 2024-05-17 21:43:14 +02:00