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

Cannot add Entity 'UpTime' on freshly installed v2024.1.1 #98

Closed
Baxxy13 opened this issue Feb 20, 2024 · 6 comments · Fixed by #100
Closed

Cannot add Entity 'UpTime' on freshly installed v2024.1.1 #98

Baxxy13 opened this issue Feb 20, 2024 · 6 comments · Fixed by #100
Labels
bug Something isn't working

Comments

@Baxxy13
Copy link

Baxxy13 commented Feb 20, 2024

While setting up IoTuring on a new system (debian bookworm), i cannot add the entity 'UpTime'.
It seems ignored.

Manually adding 'UpTime' to configurations.json works:

    "active_entities": [
        {
            "type": "AppInfo"
        },
        {
            "type": "Uptime"
        },
        {
            "type": "BootTime"
        }
    ],
@richibrics
Copy link
Owner

Are the other entities shown correctly in the configuration menu ?

@Baxxy13
Copy link
Author

Baxxy13 commented Feb 20, 2024

Yes, i can add oll other entities without problems.
They then showed in entitity "overview".

Uptime won't add and won't showed in the overview.
GIF 20 02 2024 18-05-13

@richibrics
Copy link
Owner

Thank you for the animation, you don't even get the New entity added message 🤔

@infeeeee
Copy link
Collaborator

I think the problem is the actual name and the NAME attribute of the Uptime class is different (Uptime vs UpTime). In all other classes it's the same.

We should check if the NAME attr is needed at all, the builtin instance.__class__.__name__ or type(instance).__name__ should return something similar, maybe that would be enough, so no similar bugs can happen in the future.

@richibrics
Copy link
Owner

It must be that, no difference in how it is built wrt bootime

@infeeeee infeeeee added the bug Something isn't working label Mar 2, 2024
@Baxxy13
Copy link
Author

Baxxy13 commented Jun 12, 2024

Thx for fixing this.
It's working now (again) in 2024.6.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants