which runs a command on a server to trigger a modlet switch to turn some lights on/off.
I have the item defined in my sitemap, and it works well through BasicUI:
So, as usual. my next step was to use this item in a rule:
rule "indoorHolidayLightsOn"
when
Time cron "0 43 04 ? * * *"
then
Script_Trotter_Family_Right_Holiday_Lights.sendCommand(ON)
end
I used to have other items in the rule too, but I removed them to try to figure out what’s going on here. I have enabled debug for the exec binding
One point I discovered while trying this today:
the event log updates in both cases (baseui and rule): 2017-12-09 04:43:00.097 [ItemCommandEvent ] - Item 'Script_Trotter_Family_Right_Holiday_Lights' received command ON
BUT the openhab.log only shows the exec debug when I trigger it from BasicUI…
PS I am using the smarthome designer so I have ruled out typos in my config, etc
Tried replacing sendCommand(ON) with postUpdate(ON) but it didn’t work.
I don’t see anything in the event log or the exec debug output when the rule triggers.
Please note that channels have a type in openHAB 2 so its not supposed to be both an channel accepting OnOffTypes and String types. See also a previous PR:
Rather help by testing the rewrite of the exec binding: