I have started with a dummy task and a set of rules. The dummy variable 1 does get the imported value from MQTT, but the ruleset never converts it to text. I see the event in the logs that does the first part and then nothing... basically anything 45 degrees of either side of a primary direction will be assigned the letter of that primary direction...
My MQTT variable is s2#Deg and I need to end up with TaskValueSet1,2,X on the display...
Here is the ruleset that I have started...
Code: Select all
On s2#Deg Do
TaskValueSet,1,1,[s2#Deg]
If [Dummy#Deg]>315
Event,SetToNorth
EndIf
If [Dummy#Deg]>225
Event,SetToWest
EndOn
If [Dummy#Deg]>135
Event,SetToSouth
EndOn
If [Dummy#Deg]>45
Event,SetToEase
EndOn
If [Dummy#Deg]>0
Event,SetToNorth
EndOn
If [Dummy#Deg]=0
Event,SetToNorth
EndOn
//Below is events
On SetToNorth Do
TaskValueSet1,2,N
EndOn
On SetToWest Do
TaskValueSet1,2,W
EndOn
On SetToMed Do
TaskValueSet1,2,S
EndOn
On SetToHigh Do
TaskValueSet1,2,E
EndOn