Commit Graph

591 Commits

Author SHA1 Message Date
4eb86941fb Platform build fix IV 2022-10-27 01:19:46 +02:00
d3e8386c3a Platform build fix 2022-10-27 00:56:17 +02:00
d7d08db1e3 DRV - BL09XX - history calculation updated.
Warnings resolved.
2022-10-26 23:54:56 +02:00
0573d8cd91 BL09XX - implemented saving of consumption history
HAL - Added fields for saving metring variables
OTA - added donwload progress in HTTP front page
MAIN - added Saving of metering status before reboot.
2022-10-26 22:08:17 +02:00
c84dddcb3b Merged changes from upstream
Updated usage of htprint255
Main - wifi state machine changes. Ping state machine changes.
Ping - added flag if ping is already started or not, added silent flag
2022-10-26 22:08:17 +02:00
6fe708162c BL0937 - measurements refinement, added past seven days stats
BL09XX - HTTP plugin afdjustment, added new output doe daily stats.
DRV - updated NTP.
NTP - added HTTP plugin
HAL - added Wifi Disconnect command (TODO: other platforms)
MAIN - ping watchdog added wifi disconnect command after ping watchdog triggered
2022-10-26 22:08:17 +02:00
6ecba9344d HTTP - removed P10,P11 expception from PIN monitor
PINS - button active level bug fix.
2022-10-26 22:08:17 +02:00
0ba61a7a81 DRV - bug fixing for driver HTTP plugin driver list. 2022-10-26 22:08:17 +02:00
d2a580ddfd Merge pull request #332 from btsimonh/OTAThreadFix
IDLE MUST RUN!!!
2022-10-25 17:32:03 +02:00
b62d45e7d2 AlwaysHigh AND AlwaysLow 2022-10-25 17:08:16 +02:00
a824f93f68 added new button types for a RGB LED strip that has buttons 2022-10-25 17:00:36 +02:00
dc00837cbc IDLE MUST RUN!!!
Added idle counter to 1s timer.
Added rtos_delay_milliseconds in 1s timer, inside OTA, and in http tcp server and client threads.
Reason: During OTA, it could get to a state where the IDLE thread got no time.
The problem with this is that the tcp_client thread stack never got released, and so during this time, the heap was reduced by 8k for each call, resulting in no more heap, and death (hang).
2022-10-25 12:31:24 +01:00
58cc3b5017 Merge pull request #330 from iprak/fix-for-none-device-class
Removed None
2022-10-25 11:56:37 +02:00
2970ec62fd Replace hprintf128 with hprintf255 in all files 2022-10-25 06:31:11 +01:00
449d66a2d0 Merge branch 'snprintf' into snprintfPR
# Conflicts:
#	src/driver/drv_bl_shared.c
2022-10-25 06:29:59 +01:00
6516205d37 Chore: replace many sprintf with snprintf. Only one was doubtful - 5 x %f into a small string? 2022-10-25 06:19:23 +01:00
a7f840c05d Removed None 2022-10-24 19:52:59 -05:00
0a095bbd65 Added Wh for energy 2022-10-23 10:34:40 -05:00
b9825521d4 Sending unit in discovery 2022-10-23 10:34:05 -05:00
ef019647cf increase http client stack size; add LFS read file to buffer function; make sure events are clear 2022-10-23 05:27:03 +02:00
fe7c5962de Merge pull request #309 from iprak/discovery-publish-channels
Discovery / publish initial values
2022-10-21 14:45:50 +02:00
f27468424e Revised to use enum 2022-10-21 05:27:08 -05:00
7cce808c76 basic IR events are working, IR is now updated along with buttons / drivers quick tick 2022-10-20 18:14:42 +02:00
1471131d20 Publish channel states after discovery 2022-10-20 04:49:52 -05:00
0a68c444a7 flag used to determine whether we want an IR data MQTT publish 2022-10-20 08:39:13 +02:00
b8bc36bb93 Merge pull request #300 from iprak/resolve-issues-with-2-pwm
HomeAssistant Discovery: Handle 2 PWM and other fixes
2022-10-20 06:19:33 +02:00
c94194e6d3 IR driver wrapper, also warning fixes 2022-10-19 13:54:25 +02:00
c0169983a4 allow user to set IR recv and IR send pin 2022-10-19 12:19:45 +02:00
1fd7e64c7e Fixed BL602 build error 2022-10-18 06:59:56 -05:00
a51477bb54 Sensor: added state_class, removed payload 2022-10-18 06:37:09 -05:00
86ee0499ac Fixed 2 PWM case 2022-10-18 06:35:51 -05:00
03a70b24e8 HA Assistent fixes. "dev_cla" specs changed changed.
TuyaMCU - added comments
2022-10-17 19:00:00 +02:00
2e00165225 Power monitor - added configurable history model
Fixed bug: missing call of BL_stared_init
Fixed bug: htprintf128 change to vsnprintf with buffer limit set to 256 bytes
2022-10-17 10:45:24 +02:00
f0b3ae27dc Changed discovery to sent msg, fixed power check 2022-10-16 07:29:59 -05:00
07d360c10c Merge branch 'openshwprojects:main' into main 2022-10-16 10:40:07 +02:00
613bb91ec3 Energy Monitor handler updates.
- added events
- added MQTT topic for last hour consumption stats
- HA assisten update
TuyaMCU - driver update.
New device added.
2022-10-15 18:04:24 +02:00
5123b45427 Added file header comment 2022-10-15 07:56:26 -05:00
c4e290a613 Update gulp to include space around = 2022-10-15 07:51:39 -05:00
fd4aaeef13 Formatted 2022-10-14 21:08:38 -05:00
0c071b0e26 Merge pull request #276 from iprak/compress-js-css-take-2
Format/compress js/css
2022-10-14 16:02:07 +02:00
f9d3d65b3b Fixed shift upon refresh, added missing mimetype 2022-10-12 04:37:07 -05:00
573580e39c Relocated uptime-for, formatted using prettier 2022-10-11 20:39:30 -05:00
b4a313c509 Relocated assets 2022-10-11 20:04:45 -05:00
dcb5787115 Add device Calex Smart Plug 900011.1 2022-10-11 20:56:20 +01:00
cc33a1ffc1 dimmer 256 channel type 2022-10-10 17:27:14 +02:00
4749643ff8 Using base topic 2022-10-08 08:06:28 -05:00
f5ce072754 Removed spaces in templats 2022-10-08 08:05:46 -05:00
2e17c08932 Fixed BL602 build error 2022-10-08 06:48:19 -05:00
2af56fb56f Sensor 2022-10-08 06:06:02 -05:00
ff269cc3c1 Fixed BL602 build error 2022-10-07 20:45:54 -05:00