prepare-plug-zui-store 185 B

1234
  1. #!/usr/bin/env bash
  2. snapctl set :zui-store z2mconfig="$(snapctl get -d server mqtt session)"
  3. snapctl set :zui-store z2mserial="$(snapctl is-connected serial-port && echo 1 || echo 0)"