I’m using Prowl for sending notifications. That bits is all working well.
What I want to be able to do is send varibles rather than just fixed messages. See here.
pushNotification("Analog Value A Device GA", "Value has changed") val anaa = (xrf_anaa.state as DecimalType).intValue pushNotification("Analog Value A Device GA", anaa)
I want to send the value of anaa which is an int. I’m getting this error.
Error during the execution of rule ‘Analog GA A’: Cannot cast org.openhab.core.library.types.StringType to org.openhab.core.library.types.DecimalType
Any help would be greatly received.