WebThingsIO / api

Web Thing API Specification
http://iot.mozilla.org/wot/
Other
164 stars 25 forks source link

Thermostat Web Thing Type #61

Closed benfrancis closed 6 years ago

benfrancis commented 6 years ago

We should define a web thing type for thermostats

thetwc commented 6 years ago

Really appreciate this. I’m currently running Qubino, Secure, Horstmann and virtual thermostats so I’m happy to test.

wwahammy commented 6 years ago

What would you need for this? I'd like to get my Nest connected.

mrstegeman commented 6 years ago

With the upcoming 0.5 release, we're switching from a system of static web thing types to a capability-based system, as it's much more flexible. That being the case, there are 2 paths forward. If possible, it would be great to pursue both at the same time.

  1. Propose a set of property and capability types that you would need in order to support a thermostat. For instance, you'd probably need TemperatureProperty, HumidityProperty, HVACModeProperty, and maybe some additional properties for target temperatures, etc., and then a ThermostatCapability. Our current schema repository can be found here, with an easier to read version here.
  2. Build an add-on for Nest or another thermostat. The necessary types don't need to exist yet. Our UI will build a generic view for all of the properties, based on their data type, i.e. a number property will be given a generic number input. For instance, we don't yet have any relevant types defined for a weather station, but @freaktechnik built an awesome add-on for Netatmo weather stations.
freaktechnik commented 6 years ago

On the topic of nest, someone seems to be trying to get at least some nest devices connected: https://discourse.mozilla.org/t/nest-oauth-flow/29913

jaller94 commented 6 years ago

I am strongly in favour of adding additional properties for target values. Separating actual values from target values ensures a trust in the actual values to become inputs for rules. If the Web Thing would immediately reply with a target temperature, it might trigger unexpected actions in a gateway or be less valuable as an input because of this missing separation.

mrstegeman commented 6 years ago

Closed in favor of mozilla-iot/schemas#13