Page 1 of 1
Request for new TypeNames
Posted: Sunday 18 June 2017 20:28
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.
Re: Request for new TypeNames
Posted: Monday 19 June 2017 13:13
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"
Re: Request for new TypeNames
Posted: Tuesday 20 June 2017 7:52
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...
Re: Request for new TypeNames
Posted: Tuesday 20 June 2017 12:46
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