Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add missing device category field #500

@fragsalat

Description

@fragsalat

Hey there,

could you maybe add the category field for NACamDoorTag entities? Those tell me whether it is a door or a window and I can create corresponding entities in homeassistant for that. The data is passed through /homesdata endpoint. Example payload below

{
  id:"xx:xx:xx:yy:yy:yy:"
  type:"NACamDoorTag"
  name:"Terassentür"
  setup_date:1639423483
  bridge:"xx:xx:xx:yy:yy:yy"
  category:"door"
}
{
  id:"xx:xx:xx:yy:yy:yy"
  type:"NACamDoorTag"
  name:"Fenster Wohnzimmer"
  setup_date:1639424076
  bridge:"xx:xx:xx:yy:yy:yy"
  category:"window"
}

Currently a device_category exists but this is derived from the type and in case of NACamDoorTag it is OPENING. Do be backward compatible you could simply pass the field category from the raw data or just store the raw data and let people access it.

Thanks for your support and the good library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions