This object is in archive! 
Rest Api Rules
Need Answer
Hello,
Can you write me example of working Model Schema of POST rule with simple rule (ex. if device "1" is of then turn off device "2"). When I try to write this :
- {
- "name": "123",
- "code": [{
- "name": "123",
- "stopAfterExecution": false,
- "whenClause": {
- "type": "hr.chus.model.event.BinaryAttributeChangeEvent",
- "properties": {
- "clusterType": "com.zipato.cluster.Sensor",
- "attribute": "state",
- "value": true,
- "endpointUuid": "d7f71350-8e0e-45d7-b0e2-750c8bd35fd2",
- "type": "sensor"
- }
- },
- "elementList": [
- {
- "type": "hr.chus.model.action.generic.ArgsAction",
- "properties": {
- "clusterType": "com.zipato.cluster.OnOff",
- "endpointUuid": "4565f6ec-7670-4af4-a19b-14713200191d",
- "action": "off",
- "args": [],
- "type": "actuator"
- }
- }
- ]
- }]
- }
It say it's wrong but this "code-model schema" I've got from API get code rule from another rule.
Thanks for reply.
No connection
Real-time notifications may not work
Replies have been locked on this page!