* 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
* Add HAL_GetWiFiBSSID() and HAL_GetWiFiChannel() commands
Display correct BSSID and channel in JSON status
* Testing bssid RTL
* Typo and new try for RTL
* Fix BSSID returned
* bettter
* test
* Update hal_wifi_xradio.c
---------
Co-authored-by: Tester23 <85486843+openshwprojects@users.noreply.github.com>
* Charts test for Ln882h and w800
* Update cmd_if.c
Try fix for DRV_GetReading without ENABLE_DRIVER_BL0937
* Update obk_config.h
* Update cmd_if.c
next try to fix Drivers w/o OBK_DISABLE_ALL_DRIVERS
* Update cmd_channels.c
... and another "DRV_GetReading" ...
* Update hass.c
... next problem: DRV_GetEnergySensorNames
* Update hass.c
.. more disabling code w/o energy driver
* Update http_fns.c
... and even more
* Update json_interface.c
... and energy drivers in json_interface.c
* Update user_main.c
another use of BL09X
* Update obk_config.h to remove define for charts driver
Requesting "STATUS" or "STATUS 5" on W800 was crashing the module.
Reason was "tmpStr" was too short, now it works.
Might have caused instability on other platforms, too
* Some more fixes to usage of gmtime
* Second version for drv_ntp_events.c - changing to time_t (hence do casting in calculations)
* Fix for unset NTP time if no NTP drivers present. Rely on "fake" definitions of
NTP_GetCurrentTime() and NTP_GetCurrentTimeWithoutOffset() to make sure
code using time is not called, if it is not set.
* If time is not set, give 1970-01-01T00:00:00 as startupUTC
* HASS discovery energy stats fixed except energycounter_clear_date
* HASS: add friendly entity names, remove timestamp class from energycounter_clear_date as workaround for hass-incompatible date format
* HA energycounter_clear_date fixed for correct interpreting as home assistant timestamp sensor
* refactor HA power sensors discovery info
* refactor HA power sensors discovery more
* add apparent power, reactive power, power factor to mqtt + hass discovery, refactor some vars into new energy_sensors[] struct
* amend hass sensor unique_ids due to mqtt topic/channel too long; 'Error:MQTT:Unable to queue! Topic (13), channel (66) or value (437) exceeds size limit'
* hass sensors: add 'energy 2 days ago', 'energy 3 days ago', 'uptime'
web UI: energy sensors apply their rounding setting
drv_bl_shared.c: add enum for daily_stats[], put rearrange energy_sensor[] struct to expose only names via DRV_GetEnergySensorNames()
* -HA energy sensor uniq_id values made consistent with prior builds via .hass_uniq_id_suffix
-Refactor drv_bl_shared sensor/counter vars into energy_sensors[] to simplify mqtt transmissions etc
-Add energy '2 days ago'/'3 days ago' to main web ui, data from vars already being saved to/from flash
-NTP fix html formatting in web ui
* -HA energy sensor uniq_id values made consistent with prior builds via .hass_uniq_id_suffix
-Refactor drv_bl_shared sensor/counter vars into energy_sensors[] to simplify mqtt transmissions etc
-Add energy '2 days ago'/'3 days ago' to main web ui, data from vars already being saved to/from flash
-NTP fix html formatting in web ui
* Update settings.json
ignore vscode settings...
* Update settings.json
* Update settings.json
* minor fix
* fix OBK_CONSUMPTION_LAST_HOUR missing from mqtt
---------
Co-authored-by: Stefan Smith <stefan064>
* 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
* 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>