I set switch:0 of my shelly pro 2 to be detached from input, then set auto_on and auto_off timers. That all works as expected, but I'm having issues with reboots. The switch is configure to restore the last state after reboot.
I was running firmware 0.11 earlier today and the timers are stopped after a reboot. Then I installed 0.12-beta3. Now the timers are running but their started_at state is incorrect:
$ curl 'http://192.168.111.41/rpc/Switch.GetStatus?id=0'
{"id":0, "source":"WS_in", "output":false, "timer_started_at":1670012909.30, "timer_duration":9900.00,"temperature":{"tC":26.6, "tF":79.8}}
$ curl 'http://192.168.111.41/rpc/Shelly.Reboot'
null
$ curl 'http://192.168.111.41/rpc/Switch.GetStatus?id=0'
{"id":0, "source":"init", "output":false, "timer_started_at":4.95, "timer_duration":9900.00,"temperature":{"tC":26.7, "tF":80.0}}
$ curl 'http://192.168.111.41/rpc/Switch.GetConfig?id=0'
{"id":0, "name":null,"in_mode":"detached","initial_state":"restore_last", "auto_on":true, "auto_on_delay":9900.00, "auto_off":true, "auto_off_delay": 900.00}