Well I finally tried this and it doesn't seem to work...
I have a scheduled task that turns on the bedroom light at 7am on weekdays and it's only supposed to happen if the system mode is Home, Daytime or Nighttime.
I put the system into 'Vacation' mode (so I thought) by setting the server variable 'housemode' to 'Vacation'. But the scheduled task still fires at 7am.
Scheduled task modes screen:
Macro that gets run:
Macro|
WebCmd|all~Toast|info~Server mode~The server mode is {{housemode}}~5000!
MqttPublish|zigbee2mqtt/Bedroom light/set~{"state": "ON"}
Log output:
26/12/2024 06:59:58.59 · DEBUG · AndroidTV.RX - FireTV << mScreenState=ON>>
26/12/2024 06:59:58.59 · DEBUG · AndroidTV.TX: FireTV - dumpsys activity activities | grep "mResumedActivity"
26/12/2024 06:59:58.59 · DEBUG · AndroidTV.RX - FireTV << mResumedActivity: ActivityRecord{b152fe7 u0 com.amazon.tv.launcher/.deeplink.acti
vity.DirectiveSearchResultsActivityDI t779}>>
26/12/2024 07:00:00.00 · DEBUG · Server.doCommand - bedroom-light-turn-on from Server
26/12/2024 07:00:00.00 · DEBUG · Server.doCommand - WebCmd|all~Toast|info~Server mode~The server mode is {{housemode}}~5000 from Server
26/12/2024 07:00:00.00 · DEBUG · Server.doCommand - WebCmd|all~Toast|info~Server mode~The server mode is Vacation~5000
26/12/2024 07:00:00.00 · DEBUG · Server.WebCmd - all~Toast|info~Server mode~The server mode is Vacation~5000
26/12/2024 07:00:00.00 · DEBUG · Server.doCommand - MqttPublish|zigbee2mqtt/Bedroom light/set~{"state": "ON"} from Server
26/12/2024 07:00:01.00 · DEBUG · Server.doCommand - AV|23~Test~@SYS:MODELNAME=? from
26/12/2024 07:00:01.00 · DEBUG · YamahaAVR.doCommand - Cmd=[23~Test~@SYS:MODELNAME=?] Client=[Internal]
26/12/2024 07:00:08.00 · DEBUG · AndroidTV.CheckAdb - Checking for ADB running