Phone CallerID remote sensor using MQTT to communicate to my home assistant setup
Caller ID and number is main mqtt sensor
Also a mqtt status published every 15 minutes or any change to the phone state: init, idle, ring, fail, callerid
A return mqtt topic can be published to sensor to hang up the incoming call
Sensor is built in python3 and dependent on a voice capable modem. The modem control is derived from basic modem code: https://github.com/gurbyz/basicmodem
There are 3 ways to envoke the sensor
- command line using code in src/ directory: ./caller_id.py
- build a linux service using systemctl and modify paths in file: callerID.service
- using docker
docker build -t caller-id .
docker run --name caller-id --restart always -i --device=/dev/ttyACM0 caller-id
docker start caller-id