Hello,
-
Do I understand it correctly that I want to use Event instead of Property because it gets logged? (Eg. Thing is turned on and back off and I can miss that. With Event the information will be preserved.)
-
I would like to have a WebThing with a capability of https://iot.mozilla.org/schemas/#TemperatureSensor but with Event (if I correctly understand it as described above in 1)) as Overheated. I tried to add example code from the Light (I even changed the whole Thing to be Light) but it did not work - I did not see any Events the Gateway UI. Should it work (add Event to TemperatureSensor)?
-
Generaly it is unclear to me how much I need to conform to https://iot.mozilla.org/schemas/ to have my Things working with Gateway? Do I need to fit to existing definitions (eg. my “thermostat” does not work by temperature but by time schedule - I understand it kind of is not THERMOstat, but it is the closest predefined WebThing, but required TargetTemperature which does not make sense) or can I define my own combination of Capabilities/Actions/Events?
-
As I am mostly creating my Webthings I wonder if there is some best practice what type of logic should be in the Thing itself and what should be in the Gateway (eg. Should the Thing generate Overheated Event or should I make rule in the Gateway that watches the Temperature if it rises above safe level)?
Thanks for your help or suggestions,
Tomas