Coder Social home page Coder Social logo

Comments (6)

schmittx avatar schmittx commented on July 25, 2024 2

You nailed it, I think a list of official attributes would be very helpful and ensure consistency.

My image for charging status specifically would be an addition to homeassistant/const.py as you mentioned. I'm just not sure if a boolean value is robust enough or if it should be more granular (i.e. charging, not_charging, full, not_supported, unplugged, etc.).

from architecture.

balloob avatar balloob commented on July 25, 2024

So this brings up another interesting issue, as for one, we don't have a list of official attributes. Note that the list here are properties. Things that one can define on an entity and that will be stored in the state attributes.

So if this is a proposal for a property, I would say no, there is not a common enough use case.

However, if this is just a proposal for an attribute which we define in homeassistant/const.py, I would say: why not. However, in that case we would also introduce a new page in our dev docs to talk about such attributes and what value it should hold.

from architecture.

schmittx avatar schmittx commented on July 25, 2024

Is there anyone that can help with updating the dev docs to create a section describing attributes? I'm not so good with HTML stuff, but can help with content once a structure/format is established...

from architecture.

balloob avatar balloob commented on July 25, 2024

You don't need any HTML knowledge, it's all markdown (same syntax as the comments you're typing here).

Entity page is here: https://developers.home-assistant.io/docs/en/entity_index.html

from architecture.

schmittx avatar schmittx commented on July 25, 2024

Gotcha, I don't know what I was looking at initially...lots of late nights lately...

I created an initial PR, any feedback is much appreciated.

from architecture.

schmittx avatar schmittx commented on July 25, 2024

PR for battery charging has been created, thanks for the feedback and help so far!

from architecture.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.