plugins icon indicating copy to clipboard operation
plugins copied to clipboard

plugin: Alexa4P3 some item attributes not defined

Open CannonRS opened this issue 3 years ago • 6 comments

I'm getting the warning "Attribute is undefined" from "lib.metadata" because the item attributes alexa_alias, alexa_range_delta and alexa_color_temp_delta are not defined in plugin.yaml.

CannonRS avatar Mar 19 '22 18:03 CannonRS

alexa_alias is commented out in the metadata and has the description 'only for Payload V2 needed'.

I can't find any hint, that the attributes alexa_range_delta and alexa_color_temp_delta are implemented at all. So there is no need to define them in the metadata.

msinn avatar Apr 30 '22 18:04 msinn

I'm still using the alexa_alias. It's working for me.

The alexa_alias I can see it working in the Web Interface, but it isn't in the documentation anymore. The alexa_range_delta is neccessary for shutters (see here: https://github.com/Andrek01/Alexa4PayloadV3). The alexa_color_temp_delta is not longer in the documentation, but it's using in init.py.

CannonRS avatar Jun 15 '22 21:06 CannonRS

I am getting similar errors for some of my self-made plugins when shNG is firing up. Since years, those plugins have device-specific attributes defined in the corresponding items.yaml (one example are the 'e0'..'e10' definitions here, which are producing 11 lines of error messages on every startup now).

I learned from a discussion with the developers that this behavior is on purpose due to planned, yet not implemented shNG features, and that the errors would disappear in the newer shNG versions (which i don't run, also on purpose) after renaming the attributes at all possible appearances from original_attribute_name to my_original_attribute_name.

As everything else is working fine, and the error is not an error, I decided to simply ignore this and to live with the ~30 error lines during shNG startup. I recommended the same to the several plugin users who contacted me why these errors appeared in their log files suddenly out of a nowhere.

/tom

Tom-Bom-badil avatar Jun 16 '22 11:06 Tom-Bom-badil

I'm still using the alexa_alias. It's working for me.

The alexa_alias I can see it working in the Web Interface, but it isn't in the documentation anymore. The alexa_range_delta is neccessary for shutters (see here: https://github.com/Andrek01/Alexa4PayloadV3). The alexa_color_temp_delta is not longer in the documentation, but it's using in init.py.

@Andrek01 Could you look into it?

msinn avatar Mar 09 '23 14:03 msinn

I will take care about that, but it will take some time. The next two weekends are completly booked, so it will last till end of the month.

best regards Andre

Andrek01 avatar Mar 09 '23 20:03 Andrek01

No problem, I just mentioned you, because I thought you were not aware of this issue in the plugins repository.

Now, since you accepted the invitation, I can assign new issues to you, if they are in relation to your plugins. :smile:

msinn avatar Mar 10 '23 09:03 msinn