Giter Site home page Giter Site logo

webexstatus's Introduction

Webex Call Status

MQTT Bridge

This container will allow you to subscribe to call status events on a Webex Desk Pro (and possibly others, that's all I have).

It will then send MQTT messages to a broker so that you can then take action based on whether or not your endpoint is in a call.

I built this specifically for use with Home Assistant and the instructions will reflect that.

Setup

You will need to have the API available on your endpoint. If your endpoint is cloud managed, you'll need a local user.

Next you will need a basic auth token. You may find that this works for you to make one. If you worry about sending your password to a random website, then make one via the method of your choice.

Finally, run the container. I am currently building and pushing amd64 and arm64 builds to Dockerhub.

Running

docker run -d --env DESKPRO_TOKEN=<token> \
    --env DESKPRO_IP=<ip> \
    --env MQTT_HOST=<host> \
    --env MQTT_PORT=<port> \
    --env MQTT_USERNAME=<username> \
    --env MQTT_PASSWORD=<password> \
    --env SERVER_IP=<ip of the docker server> \
    -P 5001:5001 \
    sluzynsk/webexstatus

HomeAssistant

There are now MQTT messages flying at your HomeAssistant install. Right now there are two:

webexDP/Available - True/False, use to see if the script is running. The script tries to set 
            itself unavailable on exit.
webexDP/InACall - True/False. True if you're in a call.

If you're in a call when you start the script, the status isn't going to update until you hang up. This is because rather than querying for current status, we subscribe to status changes.

You can at the very least create a status indicator to show your call status. In configuration.yaml:

binary_sensor:
  - platform: mqtt
    name: "Desk Pro Active"
    state_topic: "webexDP/InACall"
    payload_on: "True"
    payload_off: "False"
    device_class: occupancy

More creative uses of the information would be to tie it to a light to indicate to your family to not open the office door, for example.

webexstatus's People

Contributors

sluzynsk avatar

Stargazers

Emmanuel Tychon avatar

Watchers

James Cloos avatar  avatar

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.