Sending sensor data to V_TEXT and MySensors

Moderator: leecollings

Post Reply
titvs
Posts: 6
Joined: Sunday 20 October 2019 17:35
Target OS: Windows
Domoticz version:
Contact:

Sending sensor data to V_TEXT and MySensors

Post by titvs »

Hi everybody,

After a lot of searching im writing to ask if its possible to have a Blocky script send a sensor value (temperature, for example), via V_TEXT to a MySensors node with Blocky
Ive declared and presented the text variable on the mySensors Node with:

Code: Select all

MyMessage textMsg(0, V_TEXT);

present(CHILD_ID_EXTEMP, S_INFO, "LCD_EXT-TEMP");
It does show up on Domoticz devices list and i managed to send a string to the node successfully. What im not able to do is convert a number into a string to send it as text to the mysensors node.

Ive tried the following Blocky script to try to convert it to string via a user variable defined as string (TEXT_EXTERIOR):
blocky.jpg
blocky.jpg (46.16 KiB) Viewed 422 times
But what i get as the content to send is "variable[1]". Is it even possible to do this with blocky? Since i dont know dzVents this would be the preferred solution...

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest