I can set up a message that says "TEMPERATURE IS" but i still need to grab the temp.
thx,
chris
Hi Chris,
This cannot be done with HAI alone.
edsel
Well, the problem is that there is no way to do "SAY VALUE OF flag". However, you can sorta kinda do it if you limit the reports to certain milestone temps. I've done something similar to log certain outdoor temp values, just for the heck of it. Here's the code I wrote (apologies for it not being in order):
27. EVERY 10 MINUTES
AND IF Outdoor Temp Sensor CURRENT READING IS 30
AND IF Outdoor temperature message flag CURRENT VALUE IS NOT 30
THEN LOG Outdoor temp 30 degrees
THEN SET Outdoor temperature message flag TO 30
28. EVERY 10 MINUTES
AND IF Outdoor Temp Sensor CURRENT READING IS 20
AND IF Outdoor temperature message flag CURRENT VALUE IS NOT 20
THEN LOG Outdoor temp 20 degrees
THEN SET Outdoor temperature message flag TO 20
29. EVERY 10 MINUTES
AND IF Outdoor Temp Sensor CURRENT READING IS 10
AND IF Outdoor temperature message flag CURRENT VALUE IS NOT 10
THEN LOG Outdoor temp 10 degrees
THEN SET Outdoor temperature message flag TO 10
30. EVERY 10 MINUTES
AND IF Outdoor Temp Sensor CURRENT READING IS 0
AND IF Outdoor temperature message flag CURRENT VALUE IS NOT 0
THEN LOG Outdoor temp zero degrees
THEN SET Outdoor temperature message flag TO 0
31. EVERY 10 MINUTES
AND IF Outdoor Temp Sensor CURRENT READING IS 80
AND IF Outdoor temperature message flag CURRENT VALUE IS NOT 80
THEN LOG Outdoor temp 80 degrees
THEN SET Outdoor temperature message flag TO 80
32. EVERY 10 MINUTES
AND IF Outdoor Temp Sensor CURRENT READING IS 90
AND IF Outdoor temperature message flag CURRENT VALUE IS NOT 90
THEN LOG Outdoor temp 90 degrees
THEN SET Outdoor temperature message flag TO 90
33. EVERY 10 MINUTES
AND IF Outdoor Temp Sensor CURRENT READING IS 100
AND IF Outdoor temperature message flag CURRENT VALUE IS NOT 100
THEN LOG Outdoor temp 100 degrees
THEN SET Outdoor temperature message flag TO 100
34. EVERY 10 MINUTES
AND IF Outdoor Temp Sensor CURRENT READING IS 40
AND IF Outdoor temperature message flag CURRENT VALUE IS NOT 40
THEN LOG Outdoor temp 40 degrees
THEN SET Outdoor temperature message flag TO 40
35. EVERY 10 MINUTES
AND IF Outdoor Temp Sensor CURRENT READING IS 50
AND IF Outdoor temperature message flag CURRENT VALUE IS NOT 50
THEN LOG Outdoor temp 50 degrees
THEN SET Outdoor temperature message flag TO 50
36. EVERY 10 MINUTES
AND IF Outdoor Temp Sensor CURRENT READING IS 60
AND IF Outdoor temperature message flag CURRENT VALUE IS NOT 60
THEN LOG Outdoor temp 60 degrees
THEN SET Outdoor temperature message flag TO 60
37. EVERY 10 MINUTES
AND IF Outdoor Temp Sensor CURRENT READING IS 70
AND IF Outdoor temperature message flag CURRENT VALUE IS NOT 70
THEN LOG Outdoor temp 70 degrees
THEN SET Outdoor temperature message flag TO 70
38. EVERY 10 MINUTES
AND IF Outdoor Temp Sensor CURRENT READING IS NOT 0
AND IF Outdoor Temp Sensor CURRENT READING IS NOT 10
AND IF Outdoor Temp Sensor CURRENT READING IS NOT 20
AND IF Outdoor Temp Sensor CURRENT READING IS NOT 30
AND IF Outdoor Temp Sensor CURRENT READING IS NOT 40
AND IF Outdoor Temp Sensor CURRENT READING IS NOT 50
AND IF Outdoor Temp Sensor CURRENT READING IS NOT 60
AND IF Outdoor Temp Sensor CURRENT READING IS NOT 70
AND IF Outdoor Temp Sensor CURRENT READING IS NOT 80
AND IF Outdoor Temp Sensor CURRENT READING IS NOT 90
AND IF Outdoor Temp Sensor CURRENT READING IS NOT 100
THEN SET Outdoor temperature message flag TO 255
The "Outdoor temp 30 degrees", "Outdoor temp 40 degrees", etc, are obviously defined messages. You can define voicing for these to say "OUTDOOR TEMPERATURE IS THIRTY DEGREES", etc. -- I haven't done that yet, but it has all of the words for multiples of ten up to ninety, plus the word "HUNDRED".