Is there a solution to execute shell commands within Buttonsdevice.
I have this config
{
"id": "hombot",
"name": "Staubsauger",
"class": "ButtonsDevice",
"buttons": [
{
"id": "hombot_start",
"text": "Start"
},
{
"id": "hombot_stop",
"text": "Stop"
...
And i want to do something like this
{
"id": "hombot",
"name": "Staubsauger",
"class": "ButtonsDevice",
"buttons": [
{
"id": "hombot_start",
"text": "Start",
"command": "curl --silent -X PATCH --header \"Content-Type:application/json\" ...
},
{
"id": "hombot_stop",
"text": "Stop",
"command": "curl --silent -X PATCH --header \"Content-Type:application/json\" ...
...
If i use the Buttonsdevice for this approach i have to write a rule for each button.