# CB1

# CB1 Software

[CB1 webside](https://bigtreetech.github.io/docs/CB1.html?h=cb1)

Release [download](https://github.com/bigtreetech/CB1/releases).

# Shutdown with shelly plug s

I will switch off the "Shelly plug s" after the shutdown of the device with a delay of 30 seconds.

Create file with <span style="color: rgb(22, 145, 121);">sudo nano /usr/lib/systemd/system-shutdown/systemd-halt.service</span> .

```
[Unit]
Description=Run mycommand at shutdown
Requires=network.target
DefaultDependencies=no
Before=shutdown.target

[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/true
ExecStop=curl -u username:password "http://IP-Address/relay/0?turn=on&timer=30"

[Install]
WantedBy=multi-user.target
```

After that enable service with <span style="color: rgb(22, 145, 121);">sudo systemctl enable /usr/lib/systemd/system-shutdown/systemd-halt.service </span>.