Skip to content

Question regarding the use of the "switch" or "switch.power" role from the Iobroker Type Detector. #59

@J-Paul0815

Description

@J-Paul0815

Question regarding the use of the "switch" or "switch.power" role from the Iobroker Type Detector.
There is a RegEX error in the Iobroker Type Detector that significantly limits and hinders the development of the LoRaWAN adapter with regard to thermostats. According to the documentation, the "switch.power" role should match the name Power, but the RegEX also recognizes "switch" and thus associates the first "switch" found with Power. This results in the switches (for example) "Window Open Detection" or "Child Lock" on/off being incorrectly recognized as Power.
For this reason, I am asking for help in clarifying whether fixing the error (Power is now only recognized via the "switch.power" role) would cause any disruptions to this adapter?
Thank you in advance for your help. Here is the link to the Type Detector issue:
ioBroker/ioBroker.type-detector#118

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions