* update supported chips list on OBK about page
* forgot Belon
* correct spelling in drv_bp1658cj.h
in comments only
* update release notice supported chips and modules
* add BL602 modules
* add w600 module
* add more modules
* 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
* HASS entity names use channel labels when set, hass discovery excludes unpublished entities (i.e. those set via SetChannelPrivate), hass discovery firmware build info added to diagnostic section, energy sensor discovery bugfix re clear-date
* update submodule sdk
* Fix ch0 label wrongly applied to diagnostic sensors
* update docs
---------
Co-authored-by: Stefan Smith <stefan064>
* 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>
* 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
* fix compile on OpenW800 due to OBK_DISABLE_ALL_DRIVERS on that platform
---------
Co-authored-by: Stefan Smith <stefan064>
* Implement RSSI for BL602 (#5)
Adds RSSI for BL602, looks ok, reports similar to what BK7231N reports in the same place
* Update http_fns.c
* Update http_fns.c
* 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