#Confused about schemas for sane development of API integration

1 messages · Page 1 of 1 (latest)

lusty ledge
#

I'm confused that there doesn't seem to be any kind of schema provided as far as I can tell for machine parsable validation in external systems. I'd like to reflect some device state in external systems but I can't display a nice visual for a range value if I don't know the range.

Is this a poor documentation issue or these schemas don't exist..? It seems like they must in some form or another.

Questions from the PoV of an external system:

  • is there no schema for the API?
  • is there no way to get the schema for actions arguments? i.e. what values are valid to send with a service call over the api?
  • is there now way to get a schema for possible device/entity states i.e. what values are permitted per attribute? Independent of a service/action call?

What about for integrations / addons?

What I've done already:

soft lake
#

Hello @lusty ledge,
Then you probably want the developers forums...

  • For reading, I recommend the developer documentation: https://developers.home-assistant.io/
  • After that if you have a question go to
    1: ⁠id:customize
    2: Customize
    and select
    3: I want to contribute
    and it will give you places to ask such questions...