OpenInterConnect / IoTDataModels

54 stars 29 forks source link

Question about the circuit diagram of a software thermostat #38

Open businka opened 1 year ago

businka commented 1 year ago

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: