Hi Folks,
I've been working to try and make an LCD Status indicator using a Mona Lisa, Arduino and an LCD display. I wanted a way to see which sensor had gone off by having it's name displayed on an LCD panel. I have managed to achieve this as can be seen below:-
The message on the first line tells me that the Upstairs PIR was triggered at 21:38. So Far So Good. Now I want to be able to send some information back to the Hub from the Arduino and I have managed to do that also as you can see below:-
The string 'custom1_133' is my message back from the Arduino/Mona Lisa. This is where I run out of stream though. I cant figure out how to use this string. I'd like to get it into Rules Engine but cant figure out a way to get it there. I'm a bit of a Hubitat novice and despite hours searching the forum threads I cant figure this bit out. I've never done Groovy Programming and am fearing I might have to learn another new language just to get at this string of data but I'm hope there is a way to get it into rules engine and work with it there.
Any suggestions would be greatly appreciated.
BTW. for anyone who is interested. I sent the time from the Hub to the Arduino as part of the data by using a custom variable and setting the time to it. The Arduino does not have an RTC (Real time clock) as standard.
You can send a string of data to the Mona Lisa through Rules Engine with an action setup as follows:-
Don't ask me why you have to set it up as a switch in order to send it a string of data but it works.
@matt1 Hi Matt, I just noticed in another thread you had attempted something similar and managed to grab the string returned to the hub by creating a child device. Do you have any more details on exactly what you did there?
Cheers,
Mark.