You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defined in level2.items can be removed if we changed the rule
rule "Chill Projection Screen"
when
Item chill_projection_screen received command
then
switch(receivedCommand.toString.toUpperCase){
case "UP": {
chill_zone_screen_button_up.sendCommand("ON")
}
case "STOP": {
chill_zone_screen_button_stop.sendCommand("ON")
}
case "DOWN": {
chill_zone_screen_button_down.sendCommand("ON")
}
}
end
to
rule "Chill Projection Screen"
when
Item chill_projection_screen received command
then
val mqttActions=getActions("mqtt","mqtt:broker:mosquitto")
switch(receivedCommand.toString.toUpperCase){
case "UP": {
mqttActions.publishMQTT(".../on");
Thread::sleep(1000)
mqttActions.publishMQTT(".../off");
}
case "STOP": {
mqttActions.publishMQTT(".../on");
Thread::sleep(1000)
mqttActions.publishMQTT(".../off");
}
case "DOWN": {
mqttActions.publishMQTT(".../on");
Thread::sleep(1000)
mqttActions.publishMQTT(".../off");
}
}
end
by using the MQTT binding v1 in parallel. Then the three rules handling the item changes of the three switches could be removed.
Additionally the sleep isn't necessary if the ESPs are configured by pulsing the output.
The text was updated successfully, but these errors were encountered:
slopjong
changed the title
Send MQTT messages in
Send MQTT messages in the 'Chill Projection Screen' rule
Nov 24, 2019
The switches
defined in
level2.items
can be removed if we changed the ruleto
by using the MQTT binding v1 in parallel. Then the three rules handling the item changes of the three switches could be removed.
Additionally the sleep isn't necessary if the ESPs are configured by pulsing the output.
The text was updated successfully, but these errors were encountered: