openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601 and BL602
https://openbekeniot.github.io/webapp/devicesList.html
1.39k stars 241 forks source link

addClockEvent NOT found #1207

Closed delay0 closed 4 months ago

delay0 commented 4 months ago

``add "addClockEvent..." to autoexec.bat has no effect.

Maybe I just don't see how to do it properly. All the examples I've tried don't work.

Firmware:

send command e.g. "addClockEvent 15:48 0xff 1 autoOn" via Log-Console returns:

Debug:CMD:cmd [addClockEvent 15:48 0xff 1 autoOn] Error:CMD:cmd addClockEvent NOT found (args 15:48 0xff 1 autoOn) Info:CMD:[WebApp Cmd 'addClockEvent 15:48 0xff 1 autoOn' Result] Unknown command

autoexec.bat ...

PowerSave 1
startDriver ntp
ntp_timeZoneOfs 2
ntp_setServer 194.25.134.196

alias autoOn setChannel 0 1
addChangeHandler Channel0 == 1 led_enableAll 1

alias autoOff setChannel 0 0
addChangeHandler Channel0 == 0 led_enableAll 0

addClockEvent 17:36:00 0x64 0 autoOn
addClockEvent 17:37:00 0x64 0 autoOff

waitFor NTPState 1
openshwprojects commented 4 months ago

It should be fixed soo nthanks to @giedriuslt