Domoticz.Device custom device options

Python and python framework

Moderator: leecollings

Post Reply
starsky
Posts: 1
Joined: Friday 05 April 2019 15:18
Target OS: Linux
Domoticz version:
Contact:

Domoticz.Device custom device options

Post by starsky »

Hi,
can You help me understanding syntax of

Code: Select all

Options = {"Custom": "1;%s" % "m"}
I was not able to find information about that. I'd like to update device with more than one value(like for DHT tempr + humid).
Above line of code takes only one string argument. How about two maybe three?

Thanks
Adrian.
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Domoticz.Device custom device options

Post by pipiche »

starsky wrote: Friday 05 April 2019 15:30 Hi,
can You help me understanding syntax of

Code: Select all

Options = {"Custom": "1;%s" % "m"}
I was not able to find information about that. I'd like to update device with more than one value(like for DHT tempr + humid).
Above line of code takes only one string argument. How about two maybe three?

Thanks
Adrian.
Be aware that using Options to store some plugin specific values, can be overwritten by Domoticz itself, as Options is a Domoticz field
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest