Skip to content

Commit

Permalink
Add heater action flows
Browse files Browse the repository at this point in the history
  • Loading branch information
JELoohuis committed Jul 6, 2024
1 parent 01ed330 commit 8987c90
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
46 changes: 46 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,52 @@
}
],
"id": "send_command_string"
},
{
"id": "heater_set_child_lock",
"title": {
"en": "Set child lock"
},
"titleFormatted": {
"en": "Set child lock [[value]]"
},
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=heater&capabilities=child_lock"
},
{
"name": "value",
"type": "checkbox",
"title": {
"en": "Value"
}
}
]
},
{
"id": "heater_set_eco_mode",
"title": {
"en": "Set eco-mode"
},
"titleFormatted": {
"en": "Set eco-mode [[value]]"
},
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=heater&capabilities=eco_mode"
},
{
"name": "value",
"type": "checkbox",
"title": {
"en": "Value"
}
}
]
}
],
"triggers": [
Expand Down
40 changes: 40 additions & 0 deletions drivers/heater/driver.flow.compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"actions": [
{
"id": "heater_set_child_lock",
"$filter": "capabilities=child_lock",
"title": {
"en": "Set child lock"
},
"titleFormatted": {
"en": "Set child lock [[value]]"
},
"args": [
{
"name": "value",
"type": "checkbox",
"title": { "en": "Value" }
}
]
},
{
"id": "heater_set_eco_mode",
"$filter": "capabilities=eco_mode",
"title": {
"en": "Set eco-mode"
},
"titleFormatted": {
"en": "Set eco-mode [[value]]"
},
"args": [
{
"name": "value",
"type": "checkbox",
"title": { "en": "Value" }
}
]
}
],
"conditions": [],
"triggers": []
}

0 comments on commit 8987c90

Please sign in to comment.