Comment 4 for bug 2058662

Revision history for this message
Jacopo Rota (r00ta) wrote :

After better looking into this I ended up that it should be a UI issue: the hard power off websocket action sends a payload

```
{
  "method": "machine.action",
  "type": 0,
  "params": {
    "action": "off",
    "extra": {},
    "system_id": "weswxk"
  },
  "request_id": 41
}
```

while the soft power off

```
{
  "method": "machine.soft_power_off",
  "type": 0,
  "params": {
    "action": "off",
    "extra": {
      "stop_mode": "soft"
    },
    "system_id": "weswxk"
  },
  "request_id": 45
}
```

the method should be `"method": "machine.action"` instead of `"method": "machine.soft_power_off"`