Giter VIP home page Giter VIP logo

dmr_tg_switch's Introduction

DMR Talkgroup Switch Home Assistant component

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.

Screenshot Screenshot

Installation

  1. Copy the folder dmr_tg_switch to custom_components inside your Home Assistant config folder
  2. Restart Home Assistant (this installs the component's dependencies)
  3. Add your config to configuration.yaml (see options below)
  4. Restart Home Assistant again

Configuration

Talkgroup switch

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.

Drop Current QSO

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.

Screenshot Screenshot

Drop All Dynamic Talkgroups

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.

Screenshot Screenshot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.