[ https://jira.fiware.org/browse/HELP-17078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Lopez reassigned HELP-17078: ------------------------------------- Assignee: Jason Fox > [fiware-stackoverflow] Fiware Actuator/Sensor On Off pattern with status > ------------------------------------------------------------------------ > > Key: HELP-17078 > URL: https://jira.fiware.org/browse/HELP-17078 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: Jason Fox > Labels: actuator, fiware, sensor > > Created question in FIWARE Q/A platform on 05-11-2020 at 00:11 > {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/64689177/fiware-actuator-sensor-on-off-pattern-with-status > +Question:+ > Fiware Actuator/Sensor On Off pattern with status > +Description:+ > My configuration includes orion, IoT Agent JSON, and mongoDB. > I want to build a Fiware Lamp actuator and I want to have is on/off status (as sensor) as well. > At the moment I use a PATCH request with body (form ORION) : > At First with on command: > { > "on": { > "type" : "command", > "value" : "" > } > } > And then with off command: > { > "off": { > "type" : "command", > "value" : "" > } > } > When I receive anything from the above, I respond from the dummy device with 200 OK. > The above in my configuration makes both the on and off tags as pending: > { > "id": "urn:ngsi-ld:Lamp:001", > "type": "Lamp", > "TimeInstant": "2020-11-04T22:42:37.00Z", > "category": [ > "actuator", > "sensor" > ], > "controlledProperty": "lamp", > "function": [ > "onOff", > "sensing" > ], > "off_info": " ", > "off_status": "PENDING", > "on_info": " ", > "on_status": "PENDING", > "refStore": "urn:ngsi-ld:Store:001", > "state": " ", > "supportedProtocol": [ > "JSON" > ], > "supportedUnits": "My Unit 2", > "on": "", > "off": "" > } > I guess that I miss something in the way, so is there any response that I have to sent back to IoT Agent json to to make one of the two tags to stop be pending? Must I Update State or Info along the way? > P.S I expected to have a reply like this: > { > "id": "urn:ngsi-ld:Lamp:001", > "type": "Lamp", > "TimeInstant": "2020-11-04T22:42:37.00Z", > "category": [ > "actuator", > "sensor" > ], > "controlledProperty": "lamp", > "function": [ > "onOff", > "sensing" > ], > "off_info": " ", > "off_status": "PENDING", > "on_info": " ", > "on_status": "OFF", > "refStore": "urn:ngsi-ld:Store:001", > "state": " ", > "supportedProtocol": [ > "JSON" > ], > "supportedUnits": "My Unit 2", > "on": "", > "off": "" > } -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy