Page 1 of 1

Notification with text sensor value

Posted: Thursday 05 August 2021 15:06
by dheuts
Good afternoon,

I made a script to put a message in a text sensor from P2000.
If the text sensor gets updated with new text, I would like to receive a notification with the content/value of the text sensor on my phone.
Test.png
Test.png (9.02 KiB) Viewed 1237 times
When I do this with Blockly and put the text sensor in the message block, I get a notification on Telegram with the text: utilitydevice3242, instead of the value of the sensor. Any idea how to get this working?

Help would be appreciated, thanks!

Re: Notification with text sensor value

Posted: Thursday 12 August 2021 17:15
by dheuts
Nobody any idea how to get this working?
If it's not possible with Blockly, would it be possible with another kind of script?

Re: Notification with text sensor value

Posted: Friday 12 November 2021 5:25
by user4563
It would be easiest in dzVents. For example, you can put values of sensors in the notification like this:

domoticz.notify('Front door','low battery '..domoticz.devices('Front door').batteryLevel..'%',domoticz.PRIORITY_NORMAL)

If my front door sensor had a battery level of 30%, it would send: Front door low battery 30%.

You would quote around your text, and two periods around the data. You'll just need to figure out the device object where the data you want is:
https://www.domoticz.com/wiki/DzVents:_ ... _scripting