smart-home-schema
smart-home-schema copied to clipboard
Command and state format differences in traits
States use oneOf to indicate there are multiple types while commands seem to use separate files instead. Could this be homologated as it's a bit annoying and confusing to have to work with both formats.
states schema also specify the response to the QUERY intent so in that sense they should be able to describe all the states supported by the device (hence the oneOf when states can vary depending on attributes).
Would it be helpful to have dedicated per-command states schema in order to distinguish which state are affected by which command similar to what we already do with results (ex: https://github.com/actions-on-google/smart-home-schema/blob/master/traits/networkcontrol/getguestnetworkpassword.results.schema.json)