From leader21
Here is a solution for system shutdown and restart as well as Pimatic reboot buttons
The command buttons can be created as follows :
{
"id": "systembuttons",
"name": "System Befehle",
"class": "ButtonsDevice",
"buttons": [
{
"id": "button-reboot",
"text": "System reboot"
},
{
"id": "button-shutdown",
"text": "System shutdown"
},
{
"id": "button-pimatic-restart",
"text": "Pimatic restart"
}
]
}
now you need three rules
furthermore it is necessary to install the shell execute plugin either by editing your config.json or from the pimatic plugin menu!
{
"plugin": "shell-execute"
}
well that’s how the magic works