Jump to content
C4 Forums | Control4

Boolean Variable Status in Email


JGLI

Recommended Posts

I'm trying to get the status of some boolean variables throughout the day via the email agent.

I have them listed in the email, but they come up as blank.  Do I need to convert the boolean to text for it to appear in an email?

Link to comment
Share on other sites


1 minute ago, JGLI said:

I'm trying to get the status of some boolean variables throughout the day via the email agent.

I have them listed in the email, but they come up as blank.  Do I need to convert the boolean to text for it to appear in an email?

Ar you using the email agent? Should just work. They appear as 1’s or 0’s (as true or false).

Link to comment
Share on other sites

Is there anything special I should do?   Here is the output, most of these are booleans:

 

Holiday Name: Yom HaShoah

Cande Lighting Time: 19:14

Havdalah Time: 20:23

 

Shabbat Variable:

10:30:

11:00:

11:30:

12:00:

12:30:

 

Yom Tov Name:

YomTov Boolean:

 

EndHoly:

 

Sukkhot:

Peseach:

Shavuot:

This event happened at : 4/15/2018  7:33 PM EDT

 

Please do not reply to this email.

Link to comment
Share on other sites

That is weird. There is nothing special needed. The following is a sample output I have (names redacted) where the 0’s and 1’s in the middle of the email are all Boolean variables:

Hi Xxx,

The following is a summary of Control4 (underlying) variables at xxx:

Variable synchronisation problems: No problem


Power:
    Mains: red
    Generator: white
    Phase 1: red
    Phase 2: red
    Phase 3: red
    Pool Pumproom: red


Sensor battery levels:
    Xxx's BIC: 70
    Xxx's BIC: 48
    Main bathroom: 78
    Main toilet: 83
    Theatre: 98
    Generator: 100

Remote battery levels:
    MBT (SR 250): 94
    MBT (SR 260): 90
    PJ Lounge: 100
    Theatre: 100
    Theatre (spare): 27

Temperature entering manifold: 17


Rainfall in last 24 hours: 0


Geyser lights: 1

Geyser pumps: 1


Winter mode: 0

Manifold flow pump: 0

Roof flow pump: 0

Underfoor heat pump 1: 0

Underfoor heat pump 2: 0


Busy irrigating: 0


Alarm Mode: 1
    (0 => normal, 1 => holiday, 2 => off, 3 => early)

Driveway beams armed: 0

Driveway beams scheduled: 0

Gate tamper alarm armed: 0

Gate (long open) alarm armed: 1


Delays (actions happen at 2pm):  
    Days until normal alarm mode is turned off: 0
    Days until normal alarm mode is turned on: 0

    Days until holiday mode is turned off: 2
    Days until holiday mode is turned on: 0

    Days until underfloor heating is turned off:0
    Days until underfloor heating is turned on:0

    Days until irrigation is turned off: 0
    Days until irrigation is turned on: 0

    Days until geyser is turned off: 0
    Days until geyser is turned on: 0

    Days until pool, spa and chiller are turned off: 0
    Days until pool, spa and chiller are turned on: 1


Jacuzzi:
    Temperature: 19
    Pump: On
    Light: 0

Pool:
    Temperature: 17
    Pump: On
    Light: 0

Chiller:
    Temperature: 19

Rainfall:
    Today: 0 
    Yesterday: 3
    2 days ago: 5
    3 days ago: 0
    4 days ago: 0
    5 days ago: 5
    6 days ago: 0
    7 days ago: 0

Cheers

Xxx
This event happened at : 4/16/2018  9:00 AM SAST

Please do not reply to this email.

 

Link to comment
Share on other sites

Interestingly I had the problem of a blank appearing when I used the status of the colour experience button. If the status was “off” as opposed to red or green etc. then it would appear as blank in an email if the status had never been anything else since the last reboot. If it had been something else, then the old state (e.g. red) would appear in the email,  not “off”. I got round this by stopping using “off” and I now use white as off.

Link to comment
Share on other sites

4 hours ago, RobbieF said:

Wow @South Africa C4 user - That's an impressive list of variables / sensors / connected devices.....  I could only imagine how much time you've spent building that up.......

 

What are you using for the rainfall and the Battery % ?

Thanks Robbie,

Amazing how complete a system can be when you are adding to it regularly and programming new things regularly.

For the rainfall, I use the weather underground driver (I can’t recall if this was a free driver or an inexpensive driver but it certainly works well) and store the value every night at midnight (actually at 11pm because I find many of the weather underground stations flip over to the next day early).  I keep a rolling week of stored rainfall values as variables (rain1 to rain7). I also display these (in my “garden” room) using a thermostat driver.

The battery levels on my wireless sensors (these are wireless card access sensors that I added into the system, mainly, because my security system did not have sensors in a couple of paces that I wanted them for automation purposes) come from a variable on the sensor driver itself. The card access sensors and the remotes all have a battery level that you can access.  If I recall correctly, the battery level on the SR260 is a bit more tricky to access accurately.

I also send myself a message once a day if any of my battery levels are below 25%.

Cheers!

Link to comment
Share on other sites

Awesome- thanks for the detailed response!  Just also wanted to say thanks for all your responses to date, I often come across a problem, do a search on the forum, and find you’ve answered or contributed to an answer somewhere along the way!  So you’ve been a lot more helpful than you realise :)

 

cheers!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.