Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Notification on mobile with variable substitution

Featured Replies

Posted

Hi UD community

I have a Polisy with mostly Insteon devices.  

I setup a notification via the mobile app when my garage has been open for 30 minutes, I have a program which runs when the garage is open and sends notifications every 30 minutes.

I'd like to include the value of a variable (number with 1 decimal place) in the notification but am not having success, the notification text sends and appears on my mobile but instead of including the number value delivers a blank space where the variable should be.

The network resource has the 'body' set to this .. 

title=Garage Open&body=The Garage has been open for ${var.1.decGarageOpenTime} hours

--

The variable format from here - have tried a few variations.

https://wiki.universal-devices.com/index.php?title=ISY-994i_Series:EMail_and_Networking_Substitution_Variables 

Anyone got this working? 

Thanks

Solved by MrBill

Go to solution
  • Solution
2 minutes ago, Skov said:

The network resource has the 'body' set to this .. 

title=Garage Open&body=The Garage has been open for ${var.1.decGarageOpenTime} hours

Try it with the variable ID number instead of the name.  ${var.1.12}  Or whatever number your is...

According to the wiki, it should also work with variable name Substitution variables are available inside custom email definitions in the form ${<variable name>} which would seem to transalte to ${decGarageOpenTime} in your case, I've never used names in the substitutions tho, i've already recently become away of the name form.

  • Author
18 minutes ago, MrBill said:

Try it with the variable ID number instead of the name.  ${var.1.12} 

Hi MrBill .. using the variable ID number worked!  Thank you.

For completeness I also tested the ${<variable name>}, in my case ${decGarageOpenTime}, but it included the that text in the message instead of the value. 

Will stick with the variable ID.  

Thanks again.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.