images numbers

Python and python framework

Moderator: leecollings

Post Reply
elgringo
Posts: 96
Joined: Thursday 18 May 2017 8:08
Target OS: Raspberry Pi / ODroid
Domoticz version: Left
Contact:

images numbers

Post by elgringo »

When creating a python plugin I can add devices

Devices have: Type, subtype, Switchtype, Image as parameters

Some are defined here.
However I look for some definitions for switchtype and images.

Is there a definiton of the switchtype and image numbers?
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: images numbers

Post by Dnpwwo »

@elgringo,

Not sure, but here's what I do know:
  • Standard images have a number less than 100
  • Custom images number from 100 upwards
  • switch_icons.txt in the www folder used to be a list of the standard icons (not sure if it is still current), there is no numbers in the file but I think they increment from either 0 or 1
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest