Commit Graph

41 Commits

Author SHA1 Message Date
openshwprojects
55e2a66f7d Tuyamcu raw access (#1048)
* working/?

* winnermicro fix

* ENABLE_DRIVER_TUYAMCU fx

* some fixes, some unfiished

* extra check
2024-01-24 11:18:29 +01:00
Imre Lengyel
87868f2559 Get sunrise/sunset (#1030)
* Get the next sunset or sunrise values as TimerSeconds to allow setting a light's initial sate.

* Fix BL602 & W600 builds, and add some self test asserts for get sunrise/sunset

* Clock based self tests fail if they are not run in Europe time zone.

Update all usages of localtime to be gmtime. On windows local time is has the timezone applied on top of the sourceTime parameter, OpenBK app manages its own timezone and applies it to g_ntpTime appropriately, so gmtime will avoid the additional timezone application on windows machines.

* Simplify sample autoexec to avoid functionality that has not been implemented yet.

* Update docs

* Small fix in autoexe file

No brackets allowed, multiplications before addition appears to work
2024-01-20 13:50:40 +01:00
Tester23
bed281a890 friendlyName fix 2024-01-02 19:35:01 +01:00
openshwprojects
79c0f6d862 temporary disable IP print 2023-11-02 17:21:50 +01:00
openshwprojects
d772bb4938 prit more ip info (#974) 2023-11-02 08:54:36 +01:00
Tester23
bff7bb5d9e correct invalid HSB scaling 2023-10-21 18:15:51 +02:00
Tester23
0a4330a1e3 obk define for batter driver 2023-08-14 17:59:04 +02:00
Tester
a3032662d4 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2023-08-11 09:43:28 +02:00
Tester
5ca43c9792 comment 2023-08-11 09:42:46 +02:00
openshwprojects
6de16f0792 support http_tasmota_json_status_STS for STATUS 11? 2023-06-05 10:05:33 +02:00
openshwprojects
a437da53b8 alternate ssid dp1, led save for flag 2023-04-29 12:37:36 +02:00
openshwprojects
6e22209ee4 NTP_SendRequest: Unable to send message - retry quickly after reboot 2023-04-25 11:34:04 +02:00
Dheenhasty
28556c06c7 Adding SGP Air Sensor I2C Driver (#769)
* Adding new driver for SGP30

* correct tasmota detection for SGP

* Correct mqtt publish

* Adding dependency in drv_tuyaMCU for bl0602
2023-04-14 08:37:12 +02:00
openshwprojects
9adb991274 uart fake hex can now take hex with spaces, also fix warning 2023-04-13 10:23:48 +02:00
openshwprojects
0541402e6d Ch command for easier channel JSON access 2023-04-13 09:08:41 +02:00
openshwprojects
c67144a3ea add missing power factor 2023-04-11 08:54:18 +02:00
openshwprojects
424e247773 typo fix 2023-04-10 22:40:10 +02:00
openshwprojects
2d8600687b add missing json variables for power metering 2023-04-10 20:51:59 +02:00
openshwprojects
568c7fdbf1 fix pwm count to count multiple pwms on single channel as one, so we can allow users to turn, for example, rgb led controller strip into high power triple output single color controller 2023-04-06 12:44:30 +02:00
openshwprojects
677526967a add my MAX72XX clock driver 2023-04-02 10:05:19 +02:00
openshwprojects
122946539b FIX missing uptime feormat 2023-04-01 19:00:30 +02:00
openshwprojects
947d4ab6e0 make ntp time variable public 2023-04-01 08:37:13 +02:00
openshwprojects
c7de3c7b28 optimizing strings - p1 2023-03-26 15:24:38 +02:00
openshwprojects
653e3cd102 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2023-03-18 17:20:01 +01:00
openshwprojects
52566ee6fb expose flags and short comman 2023-03-18 17:19:52 +01:00
Dheenhasty
b3d6d90e61 Tasmota Json correction for TasmotaAdmin (#737)
* Correct bug on TasmotaAdmin
When no relay and no led.

* test

* Correct preffix typo
2023-03-18 09:48:49 +01:00
openshwprojects
1e508c064d led_map interface, allow getting command results in old post command api 2023-03-17 15:24:07 +01:00
Dheenhasty
78965377a2 Correct issue with discovery (#721)
* Correct issue with discovery

* Forget declaration for bl0602
2023-03-11 18:03:54 +01:00
Dheenhasty
81f981cba0 Adding Tasmota mecanism for Sensor (#701)
* Adding Tasmota mecanism for Sensor

* Correct for BL0602

* Correct issue on value.
Adding SensorRetain.

* Adding dummy statestext and prefix for tasmoadmin

* Adding more dynamic parameter to tasmota.
AP, Uptime, Start time (rely on ntp), battery and vcc, prefix mqtt

* RSSI calculation for tasmota

* Correct compile for nonbeken chip

* correct W600 build

* correct lastreading call

* Trying to force battery_lastreading for other chip

* force to For Beken only

* correct declaration

* Update drv_battery.h

Correct comment

---------

Co-authored-by: openshwprojects <85486843+openshwprojects@users.noreply.github.com>
2023-03-08 08:42:38 +01:00
openshwprojects
a27df7b6c6 json replies and self test for cfg commansd 2023-02-23 20:51:54 +01:00
openshwprojects
c4d7b7131f rest interface for channe ltypes 2023-02-20 17:03:52 +01:00
openshwprojects
33156e0eac basecolor_rgb interface 2023-02-19 20:50:50 +01:00
openshwprojects
69279fb31d missing color call 2023-02-19 19:24:55 +01:00
openshwprojects
72e6fec1e3 plug obk-specific commands to the interface 2023-02-19 12:05:32 +01:00
openshwprojects
eab52f1d12 cmd test, remove old stub, prepare for 2023-02-08 14:53:31 +01:00
openshwprojects
9b31e5008b automatic SENSOR broadcast 2023-01-25 10:53:38 +01:00
openshwprojects
840339f675 sonoff iobroker support (FIRST MUST BE ENABLED IN FLAGS), tele sending 2023-01-24 19:26:16 +01:00
openshwprojects
a9d86edf0d Tasmota aliases and JSON for CT and Dimmer with automatic self test 2023-01-24 04:14:24 +01:00
openshwprojects
c1cbcb6cab better tasmota status support 2023-01-24 03:26:49 +01:00
openshwprojects
e2efe3710d update sub modules, fix build, fix some warnings 2023-01-23 14:15:52 +01:00
openshwprojects
294c99cd81 better json interface also for MQTT - intiial version with self-test 2023-01-23 13:31:05 +01:00