Log sensor value from a z-wave device

Discuss Python scripts here.
SMUSEBY
Posts: 524
Joined: Wed Sep 16, 2009 9:38 pm
Location: California

Log sensor value from a z-wave device

Post by SMUSEBY »

How can I modify the following to return the sensorValue to the event log?
dev = indigo.devices[123].states['sensorValue'] # z-wave temp
indigo.server.log(" the byrd temp is".format(dev))
User avatar
DaveL17
Posts: 6839
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: Log sensor value from a z-wave device

Post by DaveL17 »

Code: Select all

dev = indigo.devices[123].states['sensorValue'] # z-wave temp
indigo.server.log(f" the byrd temp is {dev}")
I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]
SMUSEBY
Posts: 524
Joined: Wed Sep 16, 2009 9:38 pm
Location: California

Re: Log sensor value from a z-wave device

Post by SMUSEBY »

That did it. Thank you.
Post Reply

Return to “Python Scripting”