smarthomeNG / plugins

Plugins for SmartHomeNG - The device integration platform for your smart home
https://www.smarthomeNG.de
45 stars 100 forks source link

svNG plugin harmony: Harmony prefix not registered in plugin.yaml #675

Closed jksd closed 1 year ago

jksd commented 1 year ago

Hi,

due to missing registration of "harmony_" Prefix, there are several warnings in var/log/smarthome-details.log when restarting svNG:

WARNING lib.metadata Item 'harmony.hub.current_activity', attribute 'harmony_item': Attribute is undefined and has value 'current_activity_id' (defined in harmony.yaml) WARNING lib.metadata Item 'harmony.hub.current_activity_name', attribute 'harmony_item': Attribute is undefined and has value 'current_activity_name' (defined in harmony.yaml) WARNING lib.metadata Item 'harmony.activity.PowerOff', attribute 'harmony_command_1': Attribute is undefined and has value '['activity:-1']' (defined in harmony.yaml) WARNING lib.metadata Item 'harmony.activity.TV_SAT', attribute 'harmony_command_1': Attribute is undefined and has value '['activity:27083101']' (defined in harmony.yaml)

To fix this, "harmony_" prefix has to be declared in plugins/harmony/plugin.yaml:

classname: Harmony # class containing the plugin attribute_prefix: harmony

and

item_attributeprefixes: harmony: type: foo description: de: 'Definiert das Item, das in einem konkreten Zustand evaluiert oder geändert werden soll' en: 'Definition of an item that should be evaluated or changed in a specific state'

Please add to repo. Thank you in advance !

Best regards, Jörk

msinn commented 1 year ago

The maintainer of the harmony plugin is not active any more.

I have added the item attributes

to the metadata and bumped the plugin version to 1.4.2

msinn commented 1 year ago

SmartHomeNG v1.9.4 has been released