Skip to content

Commit

Permalink
Merge pull request athombv#125 from Drenso/add-default-capabilities
Browse files Browse the repository at this point in the history
Add a generic set of capabilities to each driver.compose
  • Loading branch information
bobvandevijver authored Aug 7, 2024
2 parents ce266fe + f3c1dc3 commit 700caf6
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 18 deletions.
30 changes: 24 additions & 6 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,10 @@
"id": "doorbell"
},
{
"capabilities": [],
"capabilities": [
"onoff",
"dim"
],
"connectivity": [
"cloud"
],
Expand Down Expand Up @@ -1101,7 +1104,13 @@
"id": "fan"
},
{
"capabilities": [],
"capabilities": [
"onoff",
"dim",
"light_temperature",
"light_hue",
"light_saturation"
],
"connectivity": [
"cloud"
],
Expand Down Expand Up @@ -1365,7 +1374,9 @@
]
},
{
"capabilities": [],
"capabilities": [
"alarm_contact"
],
"connectivity": [
"cloud"
],
Expand Down Expand Up @@ -1415,7 +1426,9 @@
"id": "sensor_contact"
},
{
"capabilities": [],
"capabilities": [
"alarm_motion"
],
"connectivity": [
"cloud"
],
Expand Down Expand Up @@ -1465,7 +1478,9 @@
"id": "sensor_motion"
},
{
"capabilities": [],
"capabilities": [
"alarm_smoke"
],
"connectivity": [
"cloud"
],
Expand Down Expand Up @@ -1515,7 +1530,10 @@
"id": "sensor_smoke"
},
{
"capabilities": [],
"capabilities": [
"onoff",
"measure_power"
],
"connectivity": [
"cloud"
],
Expand Down
8 changes: 6 additions & 2 deletions drivers/fan/driver.compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"class": "fan",
"name": {
"en": "Fan"
}
}
},
"capabilities": [
"onoff",
"dim"
]
}
11 changes: 9 additions & 2 deletions drivers/light/driver.compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@
"name": {
"en": "Light",
"nl": "Lamp"
}
}
},
"capabilities": [
"onoff",
"dim",
"light_temperature",
"light_hue",
"light_saturation"
]
}
7 changes: 5 additions & 2 deletions drivers/sensor_contact/driver.compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"name": {
"en": "Door Sensor",
"nl": "Deur Sensor"
}
}
},
"capabilities": [
"alarm_contact"
]
}
7 changes: 5 additions & 2 deletions drivers/sensor_motion/driver.compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"name": {
"en": "Motion Sensor",
"nl": "Bewegingssensor"
}
}
},
"capabilities": [
"alarm_motion"
]
}
7 changes: 5 additions & 2 deletions drivers/sensor_smoke/driver.compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"name": {
"en": "Smoke Detector",
"nl": "Rookmelder"
}
}
},
"capabilities": [
"alarm_smoke"
]
}
8 changes: 6 additions & 2 deletions drivers/socket/driver.compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@
"name": {
"en": "Plug",
"nl": "Plug"
}
}
},
"capabilities": [
"onoff",
"measure_power"
]
}

0 comments on commit 700caf6

Please sign in to comment.