Hello, I have a few Webcore pistons from when I was using SmartThings. Which was a little easier to use, still learning HA. Looking to convert the following…
/**************************************************************//* Basement Theater Dehumidifier Power v2 *//**************************************************************//* Author : Mike Coscia *//* Created : 7/1/2019, 5:54:10 PM *//* Modified : 7/5/2019, 7:52:06 PM *//* Build : 4 *//* UI version : v0.3.113.20210203 *//**************************************************************/ only when
Location mode is not Disable
execute
if
BSMT Dehumidifier - Theater's switch changes to off
then
withBSMT Dehumidifier - Theaterdo
Wait 10 seconds;
end with;
end if;
if
BSMT Dehumidifier - Theater's switch is off
and
All of BSMT Play PS4's, BSMT Play Xbox X's, BSMT Watch Blu-ray's, and BSMT Watch Roku's switch are off
then
withBSMT Dehumidifier - Theaterdo
Turn on;
Send SMS notification "Basement dehumidifier has been turned off. Attempting to restart." to 12016154962 and store in Messages;
Wait 10 seconds;
end with;
if
BSMT Dehumidifier - Theater's switch is on
and
BSMT Dehumidifier - Theater's power is greater than 0W
then
withBSMT Dehumidifier - Theaterdo
Send SMS notification "Basement dehumidifier successfully restarted." to 12016154962;
end with;
end if;
else if
BSMT Dehumidifier - Theater's switch is off
and
Any of BSMT Play PS4's, BSMT Play Xbox X's, BSMT Watch Blu-ray's, or BSMT Watch Roku's switch is on
then
withBSMT Dehumidifier - Theaterdo
Send SMS notification "Theater active, dehumidifier will remain off until activity is complete." to 2016154962;
Cancel all pending tasks;
end with;
end if;
end execute;