Custom component for Home Assistant so you can
- ADD, DELETE static talkgroups
- Drop Current QSO
- Drop All Dynamic Talkgroups
on a Brandmeister DMR Server using BM API v2.
- Copy the folder
dmr_tg_switch
tocustom_components
inside your Home Assistant config folder - Restart Home Assistant (this installs the component's dependencies)
- Add your config to
configuration.yaml
(see options below) - Restart Home Assistant again
switch:
- platform: dmr_tg_switch
name: TG216
dmr_id: 123456701
bm_api_key: !secret your_bm_api_key
tg: 216
tslot: 1
scan_interval:
hours: 1
name |
Talkgroup friendly name |
dmr_id |
Your 7-digit personal DMR ID + 01...99 suffix for more than one hotspot (for example: 216999901) |
bm_api_key |
Your Brandmeister API Key |
tg |
Talkgroup to ADD/DEL |
9998 = Drop Current QSO | |
9997 = Drop All Dynamic Talkgroups | |
tslot |
TimeSlot [0/1/2], simplex hotspot=0, duplex hotspot=1/2 |
scan_interval |
Updating every hour (instead of the default 30 seconds) seems to be OK. |
switch:
- platform: dmr_tg_switch
name: Drop Current QSO S1
dmr_id: 123456701
bm_api_key: !secret your_bm_api_key
tg: 9998
tslot: 1
scan_interval:
hours: 1
Create it as a button in HA Lovelace.
switch:
- platform: dmr_tg_switch
name: Drop All Dynamic S1
dmr_id: 123456701
bm_api_key: !secret your_bm_api_key
tg: 9997
tslot: 1
scan_interval:
hours: 1
Create it as a button in HA Lovelace.