Commit Graph

714 Commits

Author SHA1 Message Date
openshwprojects
28fb27b97f missing two pwms on single channel fx 2023-04-07 18:07:17 +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
e5416d83a9 add requested BL0937_SEL_n - inverted SEL 2023-04-02 11:18:44 +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
141af2f514 remove old quickconfig 2023-03-26 15:40:55 +02:00
openshwprojects
c7de3c7b28 optimizing strings - p1 2023-03-26 15:24:38 +02:00
openshwprojects
6ab48bc40c no real code changes, remove commented out legacy templates 2023-03-23 09:08:32 +01:00
openshwprojects
a858cd3b62 misc fixes for dht field, dht warning, compilation, formatting 2023-03-20 17:34:58 +01: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
d71188c5e7 warning fix 2023-03-17 16:38:35 +01:00
openshwprojects
1e508c064d led_map interface, allow getting command results in old post command api 2023-03-17 15:24:07 +01:00
ekobres
137c815dfb HASS Discovery for color temperature range. (#736)
* Add Color Temperature Range to HASS Discovery.

Add min_mireds and max_mireds to lights with color temperature capability.

* Update hass.h

* Debug logging.

* mireds as int rather than float.

* Removed debug logging.
2023-03-17 12:58:34 +01:00
openshwprojects
5995ed160c ability to hide the 'toggle' prefix from button names, also selft test fix 2023-03-15 11:03:32 +01:00
tjkolev
7e68cc0747 Clarification text for the pin mapping configuration. (#694)
As a first time user I found the help text somewhat confusing. This is
a suggestion to clarify things a bit.
* Dropped the reference to "textfield" as this is implementation specific.
One day it could be one of those numeric up/down spinner controls.
And I am not sure one can enter text value when index is expected to be
numeric. Unless there's support to enter variables...
* Added a reference to the dropdown field, as this is what I see as
"the first" field one needs to set. And it is a text value. The previous
reference "first textfield" was actually referring to the second numeric
field.

It would also be nice to link "role" to a documentation about what all
these values mean. I could not find one. I don't know most of them and
how are they used. I just took a guess.

tjk :)
2023-03-13 10:37:52 +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
openshwprojects
d47aae3f99 add ability to change mired range 2023-03-09 03:27:30 +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
8741e40799 add missing condition for HA discovery for 4 PWM with white emulation 2023-03-08 02:17:00 +01:00
openshwprojects
61bfbfe2ec two more channel types for fans 2023-03-06 15:39:16 +01:00
openshwprojects
061a4203c2 remove conditiinal from flag names so future parsing mechanism can work 2023-03-05 22:29:34 +01:00
openshwprojects
9346b55f4d TM1637 display driver p2 2023-03-03 16:16:11 +01:00
openshwprojects
68f6e7b08b fast wifi connect option - not very tested, enable in flags 2023-02-28 23:24:45 +01:00
openshwprojects
ec2f85810b better color picker for browsers? 2023-02-27 08:56:59 +01:00
openshwprojects
1b1f1a14cc anroid browser color picker fix 2023-02-26 23:32:01 +01:00
Dheenhasty
55022a1a54 Changing behaviour of battery driver (#697)
To provide Zero configuration for End User :
  - 2 new pins BAT_ADC and BAT_Relay
  - Autostart of driver if pins associated
  - change vdivider default value to 2.29 Seems like default for 2AA battery sensor
2023-02-26 16:42:40 +01:00
Dheenhasty
ebd7c309c9 Correct Float for SHT. (#696)
* Correct Float for SHT.

* adding flag to deactivate autostart for driver

* Correct Float issue on bl602

* Typo error on SHT3X Driver
2023-02-26 12:08:30 +01:00
openshwprojects
caa8357b9d allow special indices for flash memory channel access; fix obk disable drivers 2023-02-25 11:38:19 +01:00
openshwprojects
e2251b0ed3 door sensor should not post availbility topic because it goes to sleep most of the time (for HA discovery) 2023-02-25 10:21:29 +01:00
openshwprojects
df7d1878f6 shorter role name - it was breaking app CSS! 2023-02-24 18:45:33 +01:00
openshwprojects
4265f67303 deep sleep door sensor driver? 2023-02-24 15:09:15 +01:00
openshwprojects
a27df7b6c6 json replies and self test for cfg commansd 2023-02-23 20:51:54 +01:00
openshwprojects
7089a3e88e Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2023-02-22 15:19:25 +01:00
openshwprojects
d6db57c577 smart ledd button 2023-02-22 15:18:01 +01:00
Dheenhasty
993cd60c90 [HASS] Adding Battery driver discovery ang sensor avty flag (#685)
* Adding Battery driver discovery
Adding Flag for sensor avaibility publish

* correct hass.h

* correct call for other platform than beken

* Change Typo availability and Battery for driver

* Forget the pin description
2023-02-22 09:14:17 +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
f346c6169e flag for adding relays as lights in hA discovery 2023-02-19 17:10:07 +01:00
openshwprojects
72e6fec1e3 plug obk-specific commands to the interface 2023-02-19 12:05:32 +01:00
openshwprojects
30f818a2e3 Web App will always now print automatically command result, because few commands missed confirmation and were confusing users 2023-02-18 15:08:39 +01:00
Indu Prakash
b7f7beb049 Accept empty startup command (#672)
* Accept empty startup command

* Fix to clear only on submit
2023-02-15 20:22:09 +01:00
valeklubomir
263a3df18a Added Bridge Driver for polarized relays. Teardown: TONGOU TO-Q-SY1-JWT (#662)
* Added Bridge Driver for polarized relays. Teardown: TONGOU TO-Q-SY1-JWT

* W600/W800 logging bug fix

* EnergyMetering
- negative values correction.
- Enenrgy metering must continue with high precission values can not be skipped.
  In case of negative values zero value must be used for calculation
  Energy is calculated as power/time. Timing calculation is measured between sampels.
  If skipping samples, timing calculation it then incorrect as well as energy calculation

* Logical filterring and correction for peaks in measuremed values.

---------

Co-authored-by: valeklubomir <valeklubomir@gmail.com>
2023-02-13 13:07:34 +01:00
openshwprojects
d2b85c4166 use channel labels when possible 2023-02-12 20:31:00 +01:00
Indu Prakash
a587d47bd9 Consolidated some code, removed white spaces (#659) 2023-02-10 16:18:49 +01:00
openshwprojects
f119554969 misc fixes, snprintf, cmd gen 2023-02-10 15:03:27 +01:00
openshwprojects
3c447fe2c2 rename LFS define to keep consistent naming convension, move LFS test commands to test commands file, clear up obk config h 2023-02-10 11:40:36 +01:00