Icon Setting problems

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
alex_tpc
Posts: 11
Joined: 21 Apr 2022 12:40

Icon Setting problems

Post by alex_tpc »

I want to change the icon or its color as the value reaching or higher a value. For example, when the temperature is higher than 30 degrees and the icon will change to red. Can I use API to change the icon or icon color for the virtual device or physical device? or can I set up some settings to do it?
Thanks.
seattleneil
Posts: 193
Joined: 02 Mar 2020 22:41

Re: Icon Setting problems

Post by seattleneil »

Z-Way's automation API documentation for updating a virtual device is here: https: //zwayhomeautomation.docs.apiary.io/#/reference/devices/virtual-device/update/200?mc=reference%2Fdevices%2Fvirtual-device%2Fupdate%2F200

Chapter 11 of the Z-Way manual explains the software architecture. You can download the manual here: https: //github.com/Z-Wave-Me/Z-Way-Manual/raw/master/ZWayManual.pdf
User avatar
PoltoS
Posts: 7624
Joined: 26 Jan 2011 19:36

Re: Icon Setting problems

Post by PoltoS »

controller.get("vDev_id").set("metrics:icon", .....) is the one you need. You can use it in EasyScripting for example
Post Reply