Request for new TypeNames

Python and python framework

Moderator: leecollings

Post Reply
jeroenst
Posts: 25
Joined: Sunday 18 June 2017 7:28
Target OS: Linux
Domoticz version: V3.7976
Location: Netherlands
Contact:

Request for new TypeNames

Post by jeroenst »

I would like to have typenames "Watt" and "Frequency" as they are part of smartmeters and solar inverters.

For now I will use typename "Custom" instead, giving me the wrong precision and wrong icon.
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: Request for new TypeNames

Post by Dnpwwo »

@jeroenst,

TypeNames are just short cut for existing functionality.

If you want them added then you will need to supply the Type and SubType combination that will work.

EDIT: For Watts I believe you can use the TypeName "Usage"
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
jeroenst
Posts: 25
Joined: Sunday 18 June 2017 7:28
Target OS: Linux
Domoticz version: V3.7976
Location: Netherlands
Contact:

Re: Request for new TypeNames

Post by jeroenst »

Dnpwwo wrote:@jeroenst,

TypeNames are just short cut for existing functionality.

If you want them added then you will need to supply the Type and SubType combination that will work.

EDIT: For Watts I believe you can use the TypeName "Usage"
This is a little odd, because with a solar inverter the watts are not used but provided..

Is there a list of available types and subtypes? I couldn't find them till now...
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: Request for new TypeNames

Post by Dnpwwo »

@jeroenst,

The list of types and subtypes is in hardwaretypes.h, you will need to find that on github.

The plugin framework uses the follwing:

Code: Select all

					else if (sTypeName == "Usage")
					{
						self->Type = pTypeUsage;
						self->SubType = sTypeElectric;
					}
for Watts bases devices
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