forked from CCCHH/nix-infra
dequis
9d1521c485
- Prefix sensor names with ext_ as the spec says we should use that for extensions (this also improves attribute access for tools that don't like fields starting with a number) - Rename printer state to printer busy state, to make it clearer. - Add ext_3d_printer_minutes_remaining sensors
86 lines
2 KiB
JSON
86 lines
2 KiB
JSON
{
|
|
"dynamic": {
|
|
"sensors": {
|
|
"temperature": [
|
|
{
|
|
"sensor_data": {
|
|
"unit": "°C",
|
|
"location": "Innenhof",
|
|
"description": "Sensor im Innenhof (erreichbar durch das Flurfenster)"
|
|
},
|
|
"allowed_credentials": [
|
|
"club-assistant"
|
|
]
|
|
}
|
|
],
|
|
"humidity": [
|
|
{
|
|
"sensor_data": {
|
|
"unit": "%",
|
|
"location": "Innenhof",
|
|
"description": "Sensor im Innenhof (erreichbar durch das Flurfenster)"
|
|
},
|
|
"allowed_credentials": [
|
|
"club-assistant"
|
|
]
|
|
}
|
|
],
|
|
"ext_3d_printer_busy_state": [
|
|
{
|
|
"sensor_data": {
|
|
"unit": "bool",
|
|
"location": "Loetschlauch",
|
|
"name": "mk4",
|
|
"description": "Prusa mk4 busy state"
|
|
},
|
|
"allowed_credentials": [
|
|
"club-assistant"
|
|
]
|
|
},
|
|
{
|
|
"sensor_data": {
|
|
"unit": "bool",
|
|
"location": "Loetschlauch",
|
|
"name": "mk3.5",
|
|
"description": "Prusa mk3.5 busy state"
|
|
},
|
|
"allowed_credentials": [
|
|
"club-assistant"
|
|
]
|
|
}
|
|
],
|
|
"ext_3d_printer_minutes_remaining": [
|
|
{
|
|
"sensor_data": {
|
|
"unit": "minutes_remaining",
|
|
"location": "Loetschlauch",
|
|
"name": "mk4",
|
|
"description": "Prusa mk4 minutes remaining"
|
|
},
|
|
"allowed_credentials": [
|
|
"club-assistant"
|
|
]
|
|
},
|
|
{
|
|
"sensor_data": {
|
|
"unit": "minutes_remaining",
|
|
"location": "Loetschlauch",
|
|
"name": "mk3.5",
|
|
"description": "Prusa mk3.5 minutes remaining"
|
|
},
|
|
"allowed_credentials": [
|
|
"club-assistant"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"state": {
|
|
"open": {
|
|
"allowed_credentials": [
|
|
"dooris-hauptraum"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|