Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin: Alexa4P3 some item attributes not defined #592

Open
CannonRS opened this issue Mar 19, 2022 · 6 comments
Open

plugin: Alexa4P3 some item attributes not defined #592

CannonRS opened this issue Mar 19, 2022 · 6 comments
Assignees

Comments

@CannonRS
Copy link
Contributor

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.

@msinn
Copy link
Member

msinn commented Apr 30, 2022

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.

@CannonRS
Copy link
Contributor Author

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.

@Tom-Bom-badil
Copy link
Contributor

Tom-Bom-badil commented Jun 16, 2022

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

@msinn
Copy link
Member

msinn commented Mar 9, 2023

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?

@Andrek01
Copy link
Contributor

Andrek01 commented Mar 9, 2023

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

@msinn
Copy link
Member

msinn commented Mar 10, 2023

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. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants