Hi
i have created a script that will prompt a user in HSTOUCH to enter a time for hours, minutes and select a device + action.
it will then create a one time event that will perform the Action for the DEVICE at Hours:Minutes.
now this script works perfectly and i am able to create timer events.
now i want to add a push message to be sent to the device:
"a new timer has been set"
"the device **device_name** is set to do **action** at **hours**:**Minutes**"
the push is sent just fine but i cant get the **device_name** to be displayed. i managed to get the REF number or the address but i cant get the device actual name.
anyone have any idea what command i use to extract the device name as a string from ref number?
thanks
i have created a script that will prompt a user in HSTOUCH to enter a time for hours, minutes and select a device + action.
it will then create a one time event that will perform the Action for the DEVICE at Hours:Minutes.
now this script works perfectly and i am able to create timer events.
now i want to add a push message to be sent to the device:
"a new timer has been set"
"the device **device_name** is set to do **action** at **hours**:**Minutes**"
the push is sent just fine but i cant get the **device_name** to be displayed. i managed to get the REF number or the address but i cant get the device actual name.
anyone have any idea what command i use to extract the device name as a string from ref number?
thanks
Comment