-
Notifications
You must be signed in to change notification settings - Fork 29
Description
I've studied the documentation, but I still have difficulty understanding the approach.
Could you explain the principle using the example of a thermostat?
I want to make a software thermostat that switches the actuator depending on the temperature.
I got acquainted with the design of the thermostat device on the page
https://openconnectivityfoundation.github.io/devicemodels/docs/index.html
I understand correctly that the standard requires you to place two resources with the type "oic.r.temperature" and preset names "Temperature (Sensor)", "Temperature (Actuator)", the "href" to the resource can be anything. Those. other devices that want to get the temperature of the sensors of all thermostats should look for devices with the type "oic.d.thermostat" and they have resources with the rt include "oic.r.temperature" and name="Temperature (Sensor)"
Should I create my own resource type to configure my software thermostat? can I place my resource type with settings in existing resources (for example oik.con)?
How would you suggest placing the properties:
- link to oсf device actuator
- link to oсf device sensor
- operating mode - heating / cooling
- current status of the thermostat - on / off
- current state of the actuator - on / off
- current sensor temperature
- desired temperature