I have a smart home action that supports multiple device categories including blinds, doors and windows. The only time this error message comes up is when I say "Close all the windows". The windows are individually addressable. Google Home responds fine if I say "Close all the blinds". On the backend, they're essentially the same and the only thing that's different is the device category. Is there something wrong with this particular device category? This is all in english.
This is the sync response:
{
"requestId": "5149816291025266974",
"payload": {
"agentUserId": "XXXXHOME45",
"devices": [
{
"id": "HOME-34002c000a47363339343638-11",
"name": {
"name": "Bedroom 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.DOOR",
"traits": [
"action.devices.traits.OpenClose"
]
},
{
"id": "HOME-34002c000a47363339343638-12",
"name": {
"name": "Bedroom 2"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.DOOR",
"traits": [
"action.devices.traits.OpenClose"
]
},
{
"id": "HOME-34002c000a47363339343638-13",
"name": {
"name": "Bathroom"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.DOOR",
"traits": [
"action.devices.traits.OpenClose"
]
},
{
"id": "HOME-34002c000a47363339343638-14",
"name": {
"name": "Balcony"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.DOOR",
"traits": [
"action.devices.traits.OpenClose"
]
},
{
"id": "HOME-3e0030000b47363339343638-19",
"name": {
"name": "Window 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.WINDOW",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Living Room"
},
{
"id": "HOME-3e0030000b47363339343638-20",
"name": {
"name": "Window 2"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.WINDOW",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Living Room"
},
{
"id": "HOME-3e0030000b47363339343638-21",
"name": {
"name": "Window 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.WINDOW",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Master Bedroom"
},
{
"id": "HOME-3e0030000b47363339343638-22",
"name": {
"name": "Window 2"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.WINDOW",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Master Bedroom"
},
{
"id": "HOME-330035000a47363339343638-17",
"name": {
"name": "Blind 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.BLINDS",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Master Bedroom"
},
{
"id": "HOME-3c002b000747363339343638-23",
"name": {
"name": "Window 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.WINDOW",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Second Bedroom"
},
{
"id": "HOME-3c002b000747363339343638-24",
"name": {
"name": "Window 2"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.WINDOW",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Second Bedroom"
},
{
"id": "HOME-330035000a47363339343638-28",
"name": {
"name": "Blind 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.BLINDS",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Second Bedroom"
},
{
"id": "HOME-330035000a47363339343638-18",
"name": {
"name": "Blind 2"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.BLINDS",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Second Bedroom"
},
{
"id": "HOME-34002c000a47363339343638-15",
"name": {
"name": "Blind 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.BLINDS",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Living Room"
},
{
"id": "HOME-34002c000a47363339343638-16",
"name": {
"name": "Blind 2"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.BLINDS",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Living Room"
},
{
"id": "HOME-34002c000a47363339343638-10",
"name": {
"name": "Front Door"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.DOOR",
"traits": [
"action.devices.traits.OpenClose"
]
},
{
"id": "HOME-340031000d47363330353437-133",
"name": {
"name": "Stove"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.OUTLET",
"traits": [
"action.devices.traits.OnOff"
]
}
]
}
Here's a screenshot of me saying the commands. As you can see, the window command gets the "didnt get a response" message BUT all the windows do indeed close in real life. Also I can individually control the windows.
EDIT:
Okay I changed my discovery from WINDOW to AWNING and that made it work. So it looks like there is something going on with the window device type? Again I'll attach the discovery response.
{
"requestId": "5149816291025266974",
"payload": {
"agentUserId": "XXXXHOME45",
"devices": [
{
"id": "HOME-34002c000a47363339343638-11",
"name": {
"name": "Bedroom 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.DOOR",
"traits": [
"action.devices.traits.OpenClose"
]
},
{
"id": "HOME-34002c000a47363339343638-12",
"name": {
"name": "Bedroom 2"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.DOOR",
"traits": [
"action.devices.traits.OpenClose"
]
},
{
"id": "HOME-34002c000a47363339343638-13",
"name": {
"name": "Bathroom"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.DOOR",
"traits": [
"action.devices.traits.OpenClose"
]
},
{
"id": "HOME-34002c000a47363339343638-14",
"name": {
"name": "Balcony"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.DOOR",
"traits": [
"action.devices.traits.OpenClose"
]
},
{
"id": "HOME-3e0030000b47363339343638-19",
"name": {
"name": "Window 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.AWNING",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Living Room"
},
{
"id": "HOME-3e0030000b47363339343638-20",
"name": {
"name": "Window 2"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.AWNING",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Living Room"
},
{
"id": "HOME-3e0030000b47363339343638-21",
"name": {
"name": "Window 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.AWNING",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Master Bedroom"
},
{
"id": "HOME-3e0030000b47363339343638-22",
"name": {
"name": "Window 2"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.AWNING",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Master Bedroom"
},
{
"id": "HOME-330035000a47363339343638-17",
"name": {
"name": "Blind 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.BLINDS",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Master Bedroom"
},
{
"id": "HOME-3c002b000747363339343638-23",
"name": {
"name": "Window 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.AWNING",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Second Bedroom"
},
{
"id": "HOME-3c002b000747363339343638-24",
"name": {
"name": "Window 2"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.AWNING",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Second Bedroom"
},
{
"id": "HOME-330035000a47363339343638-28",
"name": {
"name": "Blind 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.BLINDS",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Second Bedroom"
},
{
"id": "HOME-330035000a47363339343638-18",
"name": {
"name": "Blind 2"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.BLINDS",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Second Bedroom"
},
{
"id": "HOME-34002c000a47363339343638-15",
"name": {
"name": "Blind 1"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.BLINDS",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Living Room"
},
{
"id": "HOME-34002c000a47363339343638-16",
"name": {
"name": "Blind 2"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.BLINDS",
"traits": [
"action.devices.traits.OpenClose"
],
"roomHint": "Living Room"
},
{
"id": "HOME-34002c000a47363339343638-10",
"name": {
"name": "Front Door"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.DOOR",
"traits": [
"action.devices.traits.OpenClose"
]
},
{
"id": "HOME-340031000d47363330353437-133",
"name": {
"name": "Stove"
},
"willReportState": true,
"deviceInfo": {
"manufacturer": "XXXX"
},
"customData": {
"device_class": "XXXX",
"device_id": "XX",
"property_id": XX
},
"type": "action.devices.types.OUTLET",
"traits": [
"action.devices.traits.OnOff"
]
}
]
}
So everything is exactly the same, except that I changed the device type and it started to work.
Do you see any errors in your project's StackDriver logs corresponding to these request IDs? developers.google.com/actions/smarthome/develop/error-logging
Make sure you select "Google Assistant Action" in the resource filter (for me, by default it was "Cloud Function") to see what Google Assistant is complaining about after the command got executed.
Related
i'm running node-fhir-server-mongo(Asymmetrik github repo)..when i put resource using PUT method and it stores in mongodb...everything works fine...but the data is partially stored...when i try to access the data i stored in database it only shows few pieces only...
below code is the data i want to store..
{
"resourceType": "Patient",
"id": "example3",
"text": {
"status": "generated",
},
"identifier": [
{
"use": "usual",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR"
}
]
},
"system": "urn:oid:1.2.36.146.595.217.0.1",
"value": "12345",
"period": {
"start": "2001-05-06"
},
"assigner": {
"display": "Acme Healthcare"
}
}
],
"active": true,
"name": [
{
"use": "official",
"family": "Chalmers",
"given": [
"Peter",
"James"
]
},
{
"use": "usual",
"given": [
"Jim"
]
},
{
"use": "maiden",
"family": "Windsor",
"given": [
"Peter",
"James"
],
"period": {
"end": "2002"
}
}
],
"telecom": [
{
"use": "home"
},
{
"system": "phone",
"value": "(03) 5555 6473",
"use": "work",
"rank": 1
},
{
"system": "phone",
"value": "(03) 3410 5613",
"use": "mobile",
"rank": 2
},
{
"system": "phone",
"value": "(03) 5555 8834",
"use": "old",
"period": {
"end": "2014"
}
}
],
"gender": "male",
"birthDate": "1974-12-25",
"_birthDate": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime",
"valueDateTime": "1974-12-25T14:35:45-05:00"
}
]
},
"deceasedBoolean": false,
"address": [
{
"use": "home",
"type": "both",
"text": "534 Erewhon St PeasantVille, Rainbow, Vic 3999",
"line": [
"534 Erewhon St"
],
"city": "PleasantVille",
"district": "Rainbow",
"state": "Vic",
"postalCode": "3999",
"period": {
"start": "1974-12-25"
}
}
],
"contact": [
{
"relationship": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0131",
"code": "N"
}
]
}
],
"name": {
"family": "du Marché",
"_family": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/humanname-own-prefix",
"valueString": "VV"
}
]
},
"given": [
"Bénédicte"
]
},
"telecom": [
{
"system": "phone",
"value": "+33 (237) 998327"
}
],
"address": {
"use": "home",
"type": "both",
"line": [
"534 Erewhon St"
],
"city": "PleasantVille",
"district": "Rainbow",
"state": "Vic",
"postalCode": "3999",
"period": {
"start": "1974-12-25"
}
},
"gender": "female",
"period": {
"start": "2012"
}
}
],
"managingOrganization": {
"reference": "Organization/1"
} }
and the actual data is stored on the mongodb is....
_id: "example3" id: "example3" meta: Object versionId: "1" lastUpdated: "2022-06-28T08:44:44+00:00" resourceType: "Patient"
if anyone know the answer or how to solve please let me know....thanks in advance!
Error: Error response from daemon: invalid volume specification: 'C:/Users/Anthony/magento2-devbox:/C:/Users/Anthony/magento2-devbox'
I have had a google around on this but I cant see how this path has been assembled. Most paths exclude the : and i am also not sure why it has assembled this :/C:/ or whether this is just produced for the error message.
This is the YAML for the replica set;
{
"kind": "ReplicaSet",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "magento2-monolith-54cdd5b4b7",
"namespace": "default",
"selfLink": "/apis/extensions/v1beta1/namespaces/default/replicasets/magento2-monolith-54cdd5b4b7",
"uid": "e819bfbd-8820-11e9-a613-080027316036",
"resourceVersion": "22855",
"generation": 1,
"creationTimestamp": "2019-06-06T06:04:12Z",
"labels": {
"app.kubernetes.io/instance": "magento2",
"app.kubernetes.io/name": "monolith",
"pod-template-hash": "54cdd5b4b7"
},
"annotations": {
"deployment.kubernetes.io/desired-replicas": "1",
"deployment.kubernetes.io/max-replicas": "1",
"deployment.kubernetes.io/revision": "1"
},
"ownerReferences": [
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"name": "magento2-monolith",
"uid": "9ec9d23e-8691-11e9-a3dd-080027316036",
"controller": true,
"blockOwnerDeletion": true
}
]
},
"spec": {
"replicas": 1,
"selector": {
"matchLabels": {
"app.kubernetes.io/instance": "magento2",
"app.kubernetes.io/name": "monolith",
"pod-template-hash": "54cdd5b4b7"
}
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"app.kubernetes.io/instance": "magento2",
"app.kubernetes.io/name": "monolith",
"pod-template-hash": "54cdd5b4b7"
}
},
"spec": {
"volumes": [
{
"name": "nginx-config-volume",
"configMap": {
"name": "magento2-monolith-nginx-config",
"defaultMode": 420
}
},
{
"name": "varnish-config-volume",
"configMap": {
"name": "magento2-monolith-varnish-config",
"defaultMode": 420
}
},
{
"name": "code",
"hostPath": {
"path": "C:/Users/Anthony/magento2-devbox",
"type": ""
}
}
],
"containers": [
{
"name": "monolith",
"image": "magento2-monolith:dev",
"ports": [
{
"containerPort": 8050,
"protocol": "TCP"
}
],
"env": [
{
"name": "DEVBOX_ROOT",
"value": "C:/Users/Anthony/magento2-devbox"
},
{
"name": "COMPOSER_HOME",
"value": "C:/Users/Anthony/magento2-devbox/.composer"
},
{
"name": "MAGENTO_ROOT",
"value": "C:/Users/Anthony/magento2-devbox/magento"
},
{
"name": "MAGENTO_ROOT_HOST",
"value": "C:/Users/Anthony/magento2-devbox/magento"
},
{
"name": "DEVBOX_ROOT_HOST",
"value": "C:/Users/Anthony/magento2-devbox"
},
{
"name": "IS_WINDOWS_HOST",
"value": "0"
}
],
"resources": {},
"volumeMounts": [
{
"name": "code",
"mountPath": "C:/Users/Anthony/magento2-devbox"
}
],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Never",
"securityContext": {
"privileged": true,
"procMount": "Default"
}
},
{
"name": "monolith-xdebug",
"image": "magento2-monolith:dev-xdebug",
"ports": [
{
"containerPort": 8002,
"protocol": "TCP"
}
],
"env": [
{
"name": "DEVBOX_ROOT",
"value": "C:/Users/Anthony/magento2-devbox"
},
{
"name": "COMPOSER_HOME",
"value": "C:/Users/Anthony/magento2-devbox/.composer"
},
{
"name": "MAGENTO_ROOT",
"value": "C:/Users/Anthony/magento2-devbox/magento"
},
{
"name": "MAGENTO_ROOT_HOST",
"value": "C:/Users/Anthony/magento2-devbox/magento"
},
{
"name": "DEVBOX_ROOT_HOST",
"value": "C:/Users/Anthony/magento2-devbox"
},
{
"name": "IS_WINDOWS_HOST",
"value": "0"
}
],
"resources": {},
"volumeMounts": [
{
"name": "code",
"mountPath": "C:/Users/Anthony/magento2-devbox"
}
],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Never",
"securityContext": {
"privileged": true,
"procMount": "Default"
}
},
{
"name": "nginx",
"image": "nginx:1.9",
"resources": {},
"volumeMounts": [
{
"name": "code",
"mountPath": "C:/Users/Anthony/magento2-devbox"
},
{
"name": "nginx-config-volume",
"mountPath": "/etc/nginx/nginx.conf",
"subPath": "nginx.conf"
}
],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"privileged": true,
"procMount": "Default"
}
},
{
"name": "varnish",
"image": "million12/varnish",
"env": [
{
"name": "VCL_CONFIG",
"value": "/etc/varnish/magento.vcl"
},
{
"name": "VARNISHD_PARAMS",
"value": "-a 0.0.0.0:6081"
}
],
"resources": {},
"volumeMounts": [
{
"name": "varnish-config-volume",
"mountPath": "/etc/varnish/magento.vcl",
"subPath": "varnish.vcl"
}
],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always"
}
],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"securityContext": {},
"schedulerName": "default-scheduler"
}
}
},
"status": {
"replicas": 1,
"fullyLabeledReplicas": 1,
"observedGeneration": 1
}
}
I am new to Docker/Kubernetes after coming over from Vagrant so i do not know where to start. The information i have is from the web browser dashboard
Path is probably not converted to unix style. Since docker 1.9.0, Windows paths are not automatically converted (eg. C:\Users to /c/Users).
So your path should be like :
{
"name": "DEVBOX_ROOT",
"value": "/c/Users/Anthony/magento2-devbox"
}
The APIs documentation says that, to get a result like the Google Fit App, one should request the steps of the derived:com.google.step_count.delta:com.google.android.gms:estimated_steps datasource
https://developers.google.com/fit/scenarios/read-daily-step-total
https://developers.google.com/fit/faq#get-step-count
In practice, it mostly seems right but, occasionaly, the results are way off.
Doing some tests, I noticed that, sometimes, using the derived:com.google.step_count.delta:com.google.android.gms:merge_step_deltas datasource gets me better results or, at least, values more similar to the ones showed in the Google Fit app.
I think though that, if a user uses more devices to count the steps, this datasource will get me all the steps combined and that's wrong.
Is it correct to use the estimated_steps datasource or should I switch to the merge_step_deltas one?
Or is it something else I can do to get the correct number of steps?
Real example
A client's steps don't match with the ones showed by the Google Fit app.
Here are his datasources list
{
"dataSource": [
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "duration",
"format": "integer"
}
],
"name": "com.google.active_minutes"
},
"dataStreamName": "from_activity<-merge_activity_segments",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.active_minutes:com.google.android.gms:from_activity<-merge_activity_segments",
"type": "derived"
},
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "duration",
"format": "integer"
}
],
"name": "com.google.active_minutes"
},
"dataStreamName": "from_steps<-estimated_steps",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.active_minutes:com.google.android.gms:from_steps<-estimated_steps",
"type": "derived"
},
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "duration",
"format": "integer"
}
],
"name": "com.google.active_minutes"
},
"dataStreamName": "merge_active_minutes",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.active_minutes:com.google.android.gms:merge_active_minutes",
"type": "derived"
},
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "activity",
"format": "integer"
}
],
"name": "com.google.activity.segment"
},
"dataStreamName": "merge_activity_segments",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.activity.segment:com.google.android.gms:merge_activity_segments",
"type": "derived"
},
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "activity",
"format": "integer"
}
],
"name": "com.google.activity.segment"
},
"dataStreamName": "platform_activity_segments",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.activity.segment:com.google.android.gms:platform_activity_segments",
"type": "derived"
},
{
"dataStreamName": "activity_from_steps",
"dataType": {
"field": [
{
"name": "activity",
"format": "integer"
}
],
"name": "com.google.activity.segment"
},
"dataQualityStandard": [],
"application": {
"packageName": "com.google.android.gms"
},
"device": {
"model": "SM-A600FN",
"version": "",
"type": "phone",
"uid": "324bd687",
"manufacturer": "samsung"
},
"dataStreamId": "derived:com.google.activity.segment:com.google.android.gms:samsung:SM-A600FN:324bd687:activity_from_steps",
"type": "derived"
},
{
"dataStreamName": "from_activity_samples<-derived:com.google.activity.samples:com.google.android.gms:samsung:SM-A600FN:324bd687:detailed",
"dataType": {
"field": [
{
"name": "activity",
"format": "integer"
}
],
"name": "com.google.activity.segment"
},
"dataQualityStandard": [],
"application": {
"packageName": "com.google.android.gms"
},
"device": {
"model": "SM-A600FN",
"version": "",
"type": "phone",
"uid": "324bd687",
"manufacturer": "samsung"
},
"dataStreamId": "derived:com.google.activity.segment:com.google.android.gms:samsung:SM-A600FN:324bd687:from_activity_samples<-derived:com.google.activity.samples:com.google.android.gms:samsung:SM-A600FN:324bd687:detailed",
"type": "derived"
},
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "calories",
"format": "floatPoint"
}
],
"name": "com.google.calories.expended"
},
"dataStreamName": "from_activities",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.calories.expended:com.google.android.gms:from_activities",
"type": "derived"
},
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "calories",
"format": "floatPoint"
}
],
"name": "com.google.calories.expended"
},
"dataStreamName": "merge_calories_expended",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.calories.expended:com.google.android.gms:merge_calories_expended",
"type": "derived"
},
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "calories",
"format": "floatPoint"
}
],
"name": "com.google.calories.expended"
},
"dataStreamName": "platform_calories_expended",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.calories.expended:com.google.android.gms:platform_calories_expended",
"type": "derived"
},
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "intensity",
"format": "floatPoint"
}
],
"name": "com.google.heart_minutes"
},
"dataStreamName": "from_activity<-merge_activity_segments",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.heart_minutes:com.google.android.gms:from_activity<-merge_activity_segments",
"type": "derived"
},
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "intensity",
"format": "floatPoint"
}
],
"name": "com.google.heart_minutes"
},
"dataStreamName": "from_heart_rate<-merge_heart_rate_bpm",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.heart_minutes:com.google.android.gms:from_heart_rate<-merge_heart_rate_bpm",
"type": "derived"
},
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "intensity",
"format": "floatPoint"
}
],
"name": "com.google.heart_minutes"
},
"dataStreamName": "from_steps<-estimated_steps",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.heart_minutes:com.google.android.gms:from_steps<-estimated_steps",
"type": "derived"
},
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "intensity",
"format": "floatPoint"
}
],
"name": "com.google.heart_minutes"
},
"dataStreamName": "merge_heart_minutes",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.heart_minutes:com.google.android.gms:merge_heart_minutes",
"type": "derived"
},
{
"dataStreamName": "soft_step_counter",
"dataType": {
"field": [
{
"name": "steps",
"format": "integer"
}
],
"name": "com.google.step_count.cumulative"
},
"dataQualityStandard": [],
"application": {
"packageName": "com.google.android.gms"
},
"device": {
"model": "SM-A600FN",
"version": "",
"type": "phone",
"uid": "324bd687",
"manufacturer": "samsung"
},
"dataStreamId": "derived:com.google.step_count.cumulative:com.google.android.gms:samsung:SM-A600FN:324bd687:soft_step_counter",
"type": "derived"
},
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "steps",
"format": "integer"
}
],
"name": "com.google.step_count.delta"
},
"dataStreamName": "estimated_steps",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps",
"type": "derived"
},
{
"dataQualityStandard": [],
"dataType": {
"field": [
{
"name": "steps",
"format": "integer"
}
],
"name": "com.google.step_count.delta"
},
"dataStreamName": "merge_step_deltas",
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.step_count.delta:com.google.android.gms:merge_step_deltas",
"type": "derived"
},
{
"dataStreamName": "derive_step_deltas<-derived:com.google.step_count.cumulative:com.google.android.gms:samsung:SM-A600FN:324bd687:soft_step_counter",
"dataType": {
"field": [
{
"name": "steps",
"format": "integer"
}
],
"name": "com.google.step_count.delta"
},
"dataQualityStandard": [],
"application": {
"packageName": "com.google.android.gms"
},
"device": {
"model": "SM-A600FN",
"version": "",
"type": "phone",
"uid": "324bd687",
"manufacturer": "samsung"
},
"dataStreamId": "derived:com.google.step_count.delta:com.google.android.gms:samsung:SM-A600FN:324bd687:derive_step_deltas<-derived:com.google.step_count.cumulative:com.google.android.gms:samsung:SM-A600FN:324bd687:soft_step_counter",
"type": "derived"
},
{
"name": "Generic ANT+ Sensor",
"dataStreamName": "AntPlus.0.124",
"dataType": {
"field": [
{
"name": "steps",
"format": "integer"
}
],
"name": "com.google.step_count.delta"
},
"dataQualityStandard": [],
"application": {
"packageName": "com.dsi.ant.plugins.antplus"
},
"dataStreamId": "raw:com.google.step_count.delta:com.dsi.ant.plugins.antplus:AntPlus.0.124",
"type": "raw"
}
]
}
On the day of May 2nd, the app shows something like 15000 steps (matched by the merge_step_deltas datasource) while requesting the steps from the estimated_steps datasource gets me about 7000 steps.
derived:com.google.step_count.delta:com.google.android.gms:estimated_steps
{
"bucket": [
{
"startTimeMillis": "1556748000000",
"endTimeMillis": "1556834400000",
"dataset": [
{
"dataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:aggregated",
"point": [
{
"startTimeNanos": "1556748469517481594",
"originDataSourceId": "derived:com.google.step_count.cumulative:com.google.android.gms:samsung:SM-A600FN:4dc460aaeb28b288:soft_step_counter",
"endTimeNanos": "1556831065968126307",
"value": [
{
"mapVal": [],
"intVal": 7601
}
],
"dataTypeName": "com.google.step_count.delta"
}
]
}
]
}
]
}
derived:com.google.step_count.delta:com.google.android.gms:merge_step_deltas
{
"bucket": [
{
"startTimeMillis": "1556748000000",
"endTimeMillis": "1556834400000",
"dataset": [
{
"dataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:aggregated",
"point": [
{
"startTimeNanos": "1556748469517481594",
"originDataSourceId": "derived:com.google.step_count.cumulative:com.google.android.gms:samsung:SM-A600FN:4dc460aaeb28b288:soft_step_counter",
"endTimeNanos": "1556831065968126307",
"value": [
{
"mapVal": [],
"intVal": 15368
}
],
"dataTypeName": "com.google.step_count.delta"
}
]
}
]
}
]
}
For the following Google Assistant Home automation sync request, my backend responses for certain accounts works. But some accounts it fails and I have no clue whatsoever.
{
"requestId": "XXXXXXXXXXXX",
"inputs": [{
"intent": "action.devices.SYNC"
}]
}
How do I debug why a SYNC request has failed? Is there a console or log where I can see what went wrong.
Everything looks just fine. Similar response for some other accounts of my user base works, where as for this user's response it always doesn't work.
Not working Response:
In this instance, its failing for the following SYNC response.
[{
"payload": {
"devices": [{
"id": "7e-f2-ca-ab-40-34-34-95:1:1",
"name": {
"name": "Air Conditioner"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.OUTLET",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:2:1",
"name": {
"name": "Office Hooter"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:5:1",
"name": {
"name": "Office Motion"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:11:1",
"name": {
"name": "Buzzer"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:11:2",
"name": {
"name": "DOOR SENSOR"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:11:4",
"name": {
"name": "Presence Sensor"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:14:1",
"name": {
"name": "Blue Lamp"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:14:2",
"name": {
"name": "Green Lamp"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:14:3",
"name": {
"name": "Side Light"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:15:1",
"name": {
"name": "Front Light"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:15:2",
"name": {
"name": "Outdoor Lights"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:15:3",
"name": {
"name": "Front Dimmer"
},
"traits": ["action.devices.traits.OnOff", "action.devices.traits.Brightness"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:17:1",
"name": {
"name": "Extra Lights"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:17:2",
"name": {
"name": "Central Light"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:17:3",
"name": {
"name": "Fan"
},
"traits": ["action.devices.traits.OnOff", "action.devices.traits.Brightness"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:19:1",
"name": {
"name": "Key Ring"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:19:2",
"name": {
"name": "Office Door"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:19:4",
"name": {
"name": "Presence Sensor"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:6:1",
"name": {
"name": "Blue LED"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:6:2",
"name": {
"name": "Work Lights"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:6:3",
"name": {
"name": "Dimmer Back"
},
"traits": ["action.devices.traits.OnOff", "action.devices.traits.Brightness"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:4:1",
"name": {
"name": "Buzzer"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:4:2",
"name": {
"name": "Door Sensor"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:4:4",
"name": {
"name": "Presence Sensor"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:3:1",
"name": {
"name": "Plug"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.OUTLET",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:7:1",
"name": {
"name": "Curtain Up"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:7:2",
"name": {
"name": "Curtain Down"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "7e-f2-ca-ab-40-34-34-95:7:3",
"name": {
"name": "Regulator"
},
"traits": ["action.devices.traits.OnOff", "action.devices.traits.Brightness"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "27465191118001134545448968013",
"name": {
"name": "Darkness"
},
"traits": ["action.devices.traits.Scene"],
"type": "action.devices.types.SCENE",
"willReportState": false
}, {
"id": "27465189752942073090942148334",
"name": {
"name": "Everything"
},
"traits": ["action.devices.traits.Scene"],
"type": "action.devices.types.SCENE",
"willReportState": false
}, {
"id": "27507709627159036391184182205",
"name": {
"name": "Mood Lights"
},
"traits": ["action.devices.traits.Scene"],
"type": "action.devices.types.SCENE",
"willReportState": false
}, {
"id": "27514704337364024105847592198",
"name": {
"name": "White Lights"
},
"traits": ["action.devices.traits.Scene"],
"type": "action.devices.types.SCENE",
"willReportState": false
}, {
"id": "27576295525515559712639822299",
"name": {
"name": "Office Lights"
},
"traits": ["action.devices.traits.Scene"],
"type": "action.devices.types.SCENE",
"willReportState": false
}]
},
"requestId": "4881304563722779302"
}]
Whereas for the following SYNC response, it works.
[{
"payload": {
"devices": [{
"id": "21-0b-c9-87-db-70-b6-83:1:1",
"name": {
"name": "Serial Lights"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.OUTLET",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:2:1",
"name": {
"name": "Water Heater"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.OUTLET",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:10:1",
"name": {
"name": "Panic Alarm"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:11:1",
"name": {
"name": "Hall Motion Sensor"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:16:1",
"name": {
"name": "Buzzer"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:16:2",
"name": {
"name": "Primary Door"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:16:4",
"name": {},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:6:1",
"name": {
"name": "Car Keys"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:6:2",
"name": {
"name": "Door Sensor"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:6:4",
"name": {
"name": "Presence Sensor"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:3:1",
"name": {
"name": "Dummy"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:3:2",
"name": {
"name": "All Out"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:3:3",
"name": {
"name": "Bed Room Fan"
},
"traits": ["action.devices.traits.OnOff", "action.devices.traits.Brightness"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:5:1",
"name": {
"name": "Hall Light"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:5:2",
"name": {
"name": "Night Light"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:5:3",
"name": {
"name": "Fan"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:8:1",
"name": {
"name": "Exhaust"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:8:2",
"name": {
"name": "kitchen Light"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"id": "21-0b-c9-87-db-70-b6-83:8:3",
"name": {
"name": "Balcony Light"
},
"traits": ["action.devices.traits.OnOff"],
"type": "action.devices.types.SWITCH",
"willReportState": false
}, {
"name": {
"name": "Good Night"
},
"traits": ["action.devices.traits.Scene"],
"type": "action.devices.types.SCENE",
"willReportState": false
}]
},
"requestId": "13733611394224717847"
}]
Google has released a smart home sync response validator tool. Use this tool to validate the sync response that is sent to the Google Assistant.
I am using jira rest api's in my application.
I have found the api for getting the meta-data for creating jira issue but that API doesn't return default values of the fields for example :-
This is the request :-
http://kelpie9:8081/rest/api/latest/issue/createmeta?projectKeys=QA&issuetypeNames=Bug&expand=project.issuetypes.fields
the default value of priority field is set to "major" and the description of priority is also customized but the return from api is:-
{
"expand": "projects",
"projects": [
{
"expand": "issuetypes",
"self": "http://kelpie9:8081/rest/api/2/project/QA",
"id": "10010",
"key": "QA",
"name": "QA",
"avatarUrls": {
"16x16": "http://kelpie9:8081/secure/projectavatar?size=small&pid=10010&avatarId=10011",
"48x48": "http://kelpie9:8081/secure/projectavatar?pid=10010&avatarId=10011"
},
"issuetypes": [
{
"expand": "fields",
"self": "http://kelpie9:8081/rest/api/2/issuetype/1",
"id": 1,
"name": "Bug",
"iconUrl": "http://kelpie9:8081/images/icons/bug.gif",
"fields": {
"summary": {
"required": true,
"schema": {
"type": "string",
"system": "summary"
},
"operations": [
"set"
]
},
"timetracking": {
"required": false,
"operations": [ ]
},
"issuetype": {
"required": true,
"schema": {
"type": "issuetype",
"system": "issuetype"
},
"operations": [ ],
"allowedValues": [
{
"id": "1",
"name": "Bug",
"description": "A problem which impairs or prevents the functions of the product.",
"iconUrl": "http://kelpie9:8081/images/icons/bug.gif"
}
]
},
"priority": {
"required": false,
"schema": {
"type": "priority",
"system": "priority"
},
"name": "Priority",
"operations": [
"set"
],
"allowedValues": [
{
"self": "http://172.19.30.101:18080/rest/api/2/priority/1",
"iconUrl": "http://172.19.30.101:18080/images/icons/priority_blocker.gif",
"name": "Blocker",
"id": "1"
},
{
"self": "http://172.19.30.101:18080/rest/api/2/priority/2",
"iconUrl": "http://172.19.30.101:18080/images/icons/priority_critical.gif",
"name": "Critical",
"id": "2"
},
{
"self": "http://172.19.30.101:18080/rest/api/2/priority/3",
"iconUrl": "http://172.19.30.101:18080/images/icons/priority_major.gif",
"name": "Major",
"id": "3"
},
{
"self": "http://172.19.30.101:18080/rest/api/2/priority/4",
"iconUrl": "http://172.19.30.101:18080/images/icons/priority_minor.gif",
"name": "Minor",
"id": "4"
},
{
"self": "http://172.19.30.101:18080/rest/api/2/priority/5",
"iconUrl": "http://172.19.30.101:18080/images/icons/priority_trivial.gif",
"name": "Trivial",
"id": "5"
}
]
},
"customfield_10080": {
"required": false,
"schema": {
"type": "array",
"items": "string",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:labels",
"customId": 10080
},
"operations": [ ]
},
"customfield_10010": {
"required": false,
"schema": {
"type": "array",
"items": "string",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:labels",
"customId": 10010
},
"operations": [ ]
},
"customfield_10071": {
"required": false,
"schema": {
"type": "array",
"items": "string",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:textfield",
"customId": 10071
},
"operations": [ ]
}
}
}
]
}
]
}
There is nothing like default value or description in priority field, how will I get those values?