Skip to content

Permit different range with template #165

@StefanoMartin

Description

@StefanoMartin

When I create a value I would like to be able to overwrite the default behaviour of a template.

With a real case:

chargeLimit = await device.createValue({
      name: 'charge_limit',
      permission: 'rw',
      template: Wappsto.ValueTemplate.PERCENTAGE
    })

However Tesla car default value smaller than 50 to 50. So, it would make more sense to have:

chargeLimit = await device.createValue({
      name: 'charge_limit',
      permission: 'rw',
      min: 50,
      template: Wappsto.ValueTemplate.PERCENTAGE
    })

However the new minimum is not setup as expected.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions