Commit Graph

616 Commits

Author SHA1 Message Date
2d8600687b add missing json variables for power metering 2023-04-10 20:51:59 +02:00
fc863eb38a better html main page for case where we have both multiple relays and sensors 2023-04-10 10:13:54 +02:00
28fb27b97f missing two pwms on single channel fx 2023-04-07 18:07:17 +02:00
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
e5416d83a9 add requested BL0937_SEL_n - inverted SEL 2023-04-02 11:18:44 +02:00
677526967a add my MAX72XX clock driver 2023-04-02 10:05:19 +02:00
122946539b FIX missing uptime feormat 2023-04-01 19:00:30 +02:00
947d4ab6e0 make ntp time variable public 2023-04-01 08:37:13 +02:00
141af2f514 remove old quickconfig 2023-03-26 15:40:55 +02:00
c7de3c7b28 optimizing strings - p1 2023-03-26 15:24:38 +02:00
6ab48bc40c no real code changes, remove commented out legacy templates 2023-03-23 09:08:32 +01:00
a858cd3b62 misc fixes for dht field, dht warning, compilation, formatting 2023-03-20 17:34:58 +01:00
653e3cd102 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2023-03-18 17:20:01 +01:00
52566ee6fb expose flags and short comman 2023-03-18 17:19:52 +01:00
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
d71188c5e7 warning fix 2023-03-17 16:38:35 +01:00
1e508c064d led_map interface, allow getting command results in old post command api 2023-03-17 15:24:07 +01:00
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
5995ed160c ability to hide the 'toggle' prefix from button names, also selft test fix 2023-03-15 11:03:32 +01:00
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
78965377a2 Correct issue with discovery (#721)
* Correct issue with discovery

* Forget declaration for bl0602
2023-03-11 18:03:54 +01:00
d47aae3f99 add ability to change mired range 2023-03-09 03:27:30 +01:00
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
8741e40799 add missing condition for HA discovery for 4 PWM with white emulation 2023-03-08 02:17:00 +01:00
61bfbfe2ec two more channel types for fans 2023-03-06 15:39:16 +01:00
061a4203c2 remove conditiinal from flag names so future parsing mechanism can work 2023-03-05 22:29:34 +01:00
9346b55f4d TM1637 display driver p2 2023-03-03 16:16:11 +01:00
68f6e7b08b fast wifi connect option - not very tested, enable in flags 2023-02-28 23:24:45 +01:00
ec2f85810b better color picker for browsers? 2023-02-27 08:56:59 +01:00
1b1f1a14cc anroid browser color picker fix 2023-02-26 23:32:01 +01:00
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
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
caa8357b9d allow special indices for flash memory channel access; fix obk disable drivers 2023-02-25 11:38:19 +01:00
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
df7d1878f6 shorter role name - it was breaking app CSS! 2023-02-24 18:45:33 +01:00
4265f67303 deep sleep door sensor driver? 2023-02-24 15:09:15 +01:00
a27df7b6c6 json replies and self test for cfg commansd 2023-02-23 20:51:54 +01:00
7089a3e88e Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2023-02-22 15:19:25 +01:00
d6db57c577 smart ledd button 2023-02-22 15:18:01 +01:00
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
c4d7b7131f rest interface for channe ltypes 2023-02-20 17:03:52 +01:00
33156e0eac basecolor_rgb interface 2023-02-19 20:50:50 +01:00
69279fb31d missing color call 2023-02-19 19:24:55 +01:00
f346c6169e flag for adding relays as lights in hA discovery 2023-02-19 17:10:07 +01:00
72e6fec1e3 plug obk-specific commands to the interface 2023-02-19 12:05:32 +01:00
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
b7f7beb049 Accept empty startup command (#672)
* Accept empty startup command

* Fix to clear only on submit
2023-02-15 20:22:09 +01:00
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
d2b85c4166 use channel labels when possible 2023-02-12 20:31:00 +01:00
a587d47bd9 Consolidated some code, removed white spaces (#659) 2023-02-10 16:18:49 +01:00