Jump to content

Notification program, I have no idea why this doesn't work


arw01

Recommended Posts

I want a notification when the heat in the shop turns on or off. I got 1, and only 1 message ever from this program. if I manually click and chose run the if or run the else, I get no email.

 

If
       Status  'Shop_Heat' is On
    Or Status  'Shop_Heat' is Off

Then
       Send Notification to 'Alan_Only.2' content 'Shop Heater'

Else
       Send Notification to 'Alan_Only.2' content 'Shop Heater'


 

I suppose logically I should not check for the off status, because the else would run if the ON was false.

Link to comment

That program looks a little strange to me. Your condition will be both "true" and "false" simultaneously, every time. While, logically, I am not sure that this explains why it does not work, it seems like a real possibility to me. Try:

 

if

status shop heat is on

then

send "on" notification

else

send "off" notification

 

If the notifications are the same, then use the same notification in both paths.

 

Understand that this program will trigger when the status changes, whether to ON or OFF. The path taken will be based on "ON" (then) or "OFF" (else).

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.3k
×
×
  • Create New...