|
| 1 | +{ |
| 2 | + "@context": [ |
| 3 | + "https://www.w3.org/2022/wot/td/v1.1", |
| 4 | + { |
| 5 | + "om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/", |
| 6 | + "time": "http://www.w3.org/2006/time#" |
| 7 | + } |
| 8 | + ], |
| 9 | + "@type": "tm:ThingModel", |
| 10 | + "title": "Floor Lamp", |
| 11 | + "description": "A smart floor lamp with 3 dimmable and color changing spots, smoke detection capability and power consumption awareness.", |
| 12 | + "version": { |
| 13 | + "model": "1.0.0" |
| 14 | + }, |
| 15 | + "links": [ |
| 16 | + { |
| 17 | + "rel": "tm:submodel", |
| 18 | + "href": "https://eclipse.dev/ditto/wot/example-models/dimmable-colored-lamp-1.0.0.tm.jsonld", |
| 19 | + "type": "application/tm+json", |
| 20 | + "instanceName": "Spot1" |
| 21 | + }, |
| 22 | + { |
| 23 | + "rel": "tm:submodel", |
| 24 | + "href": "https://eclipse.dev/ditto/wot/example-models/dimmable-colored-lamp-1.0.0.tm.jsonld", |
| 25 | + "type": "application/tm+json", |
| 26 | + "instanceName": "Spot2" |
| 27 | + }, |
| 28 | + { |
| 29 | + "rel": "tm:submodel", |
| 30 | + "href": "https://eclipse.dev/ditto/wot/example-models/dimmable-colored-lamp-1.0.0.tm.jsonld", |
| 31 | + "type": "application/tm+json", |
| 32 | + "instanceName": "Spot3" |
| 33 | + }, |
| 34 | + { |
| 35 | + "rel": "tm:submodel", |
| 36 | + "href": "https://eclipse.dev/ditto/wot/example-models/connection-status-1.0.0.tm.jsonld", |
| 37 | + "type": "application/tm+json", |
| 38 | + "instanceName": "ConnectionStatus" |
| 39 | + }, |
| 40 | + { |
| 41 | + "rel": "tm:submodel", |
| 42 | + "href": "https://eclipse.dev/ditto/wot/example-models/power-consumption-aware-1.0.0.tm.jsonld", |
| 43 | + "type": "application/tm+json", |
| 44 | + "instanceName": "PowerConsumptionAwareness" |
| 45 | + }, |
| 46 | + { |
| 47 | + "rel": "tm:submodel", |
| 48 | + "href": "https://eclipse.dev/ditto/wot/example-models/smoke-detector-1.0.0.tm.jsonld", |
| 49 | + "type": "application/tm+json", |
| 50 | + "instanceName": "SmokeDetection" |
| 51 | + }, |
| 52 | + { |
| 53 | + "rel": "tm:submodel", |
| 54 | + "href": "https://eclipse.dev/ditto/wot/example-models/colored-lamp-1.0.0.tm.jsonld", |
| 55 | + "type": "application/tm+json", |
| 56 | + "instanceName": "Status-LED" |
| 57 | + } |
| 58 | + ], |
| 59 | + "tm:optional": [], |
| 60 | + "properties": { |
| 61 | + "manufacturer": { |
| 62 | + "title": "Manufacturer", |
| 63 | + "type": "string", |
| 64 | + "readOnly": true |
| 65 | + }, |
| 66 | + "serialNo": { |
| 67 | + "title": "Serial number", |
| 68 | + "type": "string", |
| 69 | + "readOnly": true |
| 70 | + } |
| 71 | + }, |
| 72 | + "actions": { |
| 73 | + "switch-all-spots": { |
| 74 | + "title": "Switch all spots", |
| 75 | + "description": "Switches all spots (1-3) on/off based on the passed in boolean.", |
| 76 | + "type": "boolean" |
| 77 | + }, |
| 78 | + "switch-all-spots-on-for-duration": { |
| 79 | + "title": "Switch all spots on for duration", |
| 80 | + "description": "Switches all spots (1-3) on for a given duration, then switches back to their previous state.", |
| 81 | + "tm:ref": "https://eclipse.dev/ditto/wot/example-models/switchable-1.0.0.tm.jsonld#/actions/switch-on-for-duration" |
| 82 | + } |
| 83 | + } |
| 84 | +} |
0 commit comments