Skip to content

Instantly share code, notes, and snippets.

@kliu99
Created November 2, 2022 00:20
Show Gist options
  • Save kliu99/4fec6261790bfa391d46f2f5be89af03 to your computer and use it in GitHub Desktop.
Save kliu99/4fec6261790bfa391d46f2f5be89af03 to your computer and use it in GitHub Desktop.
Full Status of a Device
{
"components": {
"button2": {
"button": {
"button": {
"value": "pushed",
"timestamp": "2021-12-15T04:43:16.397Z"
},
"numberOfButtons": {
"value": 1,
"timestamp": "2021-12-15T04:43:16.301Z"
},
"supportedButtonValues": {
"value": [
"pushed",
"pushed_2x",
"pushed_3x",
"pushed_4x",
"pushed_5x"
],
"timestamp": "2021-12-15T04:43:16.365Z"
}
},
"holdableButton": {
"button": {
"value": "pushed",
"timestamp": "2021-12-15T04:43:16.397Z"
},
"numberOfButtons": {
"value": 1,
"timestamp": "2021-12-15T04:43:16.301Z"
}
},
"sensor": {}
},
"button3": {
"button": {
"button": {
"value": "pushed",
"timestamp": "2021-12-15T04:43:16.568Z"
},
"numberOfButtons": {
"value": 1,
"timestamp": "2021-12-15T04:43:16.466Z"
},
"supportedButtonValues": {
"value": [
"pushed"
],
"timestamp": "2021-12-15T04:43:16.534Z"
}
},
"holdableButton": {
"button": {
"value": "pushed",
"timestamp": "2021-12-15T04:43:16.568Z"
},
"numberOfButtons": {
"value": 1,
"timestamp": "2021-12-15T04:43:16.466Z"
}
},
"sensor": {}
},
"main": {
"powerMeter": {
"power": {
"value": 40,
"unit": "W",
"timestamp": "2022-11-01T21:51:42.862Z"
}
},
"button": {
"button": {
"value": "pushed",
"timestamp": "2022-11-01T17:49:08.505Z"
},
"numberOfButtons": {
"value": 8,
"timestamp": "2021-12-16T04:49:26.242Z"
},
"supportedButtonValues": {
"value": [
"pushed",
"held"
],
"timestamp": "2021-12-16T04:49:26.265Z"
}
},
"actuator": {},
"configuration": {},
"energyMeter": {
"energy": {
"value": 92.444,
"unit": "kWh",
"timestamp": "2022-11-01T23:52:15.876Z"
}
},
"holdableButton": {
"button": {
"value": "pushed",
"timestamp": "2022-11-01T17:49:08.505Z"
},
"numberOfButtons": {
"value": 8,
"timestamp": "2021-12-16T04:49:26.242Z"
}
},
"switchLevel": {
"level": {
"value": 99,
"unit": "%",
"timestamp": "2022-11-01T15:55:57.294Z"
}
},
"refresh": {},
"sensor": {},
"switch": {
"switch": {
"value": "on",
"timestamp": "2022-11-01T17:49:11.469Z"
}
}
},
"LEDColorConfiguration": {
"colorControl": {
"saturation": {
"value": null
},
"color": {
"value": null
},
"hue": {
"value": null
}
},
"actuator": {}
},
"button1": {
"button": {
"button": {
"value": "pushed",
"timestamp": "2021-12-16T04:20:42.891Z"
},
"numberOfButtons": {
"value": 1,
"timestamp": "2021-12-15T04:43:16.122Z"
},
"supportedButtonValues": {
"value": [
"pushed",
"pushed_2x",
"pushed_3x",
"pushed_4x",
"pushed_5x"
],
"timestamp": "2021-12-15T04:43:16.191Z"
}
},
"holdableButton": {
"button": {
"value": "pushed",
"timestamp": "2021-12-16T04:20:42.891Z"
},
"numberOfButtons": {
"value": 1,
"timestamp": "2021-12-15T04:43:16.122Z"
}
},
"sensor": {}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment