Tertiush / ParadoxIP150v2

Python-based IP150 'middle-ware' that uses the IP module's software port for monitoring and control of the alarm via an MQTT Broker.
Eclipse Public License 1.0
73 stars 35 forks source link

Custom Payload for Publish #26

Closed saundersrg closed 6 years ago

saundersrg commented 6 years ago

Busy getting my Paradox talking to Home Assistant via their MQTT Alarm Panel component (https://home-assistant.io/components/alarm_control_panel.mqtt/).

I was initially looking to use Paradox/Partition as the state topic, but that just has on/off, so I've switched to Paradox/Events. This sends through a bunch of messages, but the one I'm interested in is the sleep/away/armed SubEvents.

Is there a way that I can change the payload going through to Home Assistant to be one of their accepted types for their control panels? ie 'disarmed', 'armed_home', 'armed_away', 'pending', 'triggered'.

Again, apologies if this is a noob question, I'm new to both MQTT and Python.

saundersrg commented 6 years ago

For anyone else with the same noob issue as me, got it, changed the event descriptions in ParadoxMap.py, and then adjusted IP150-MQTTv2.py line 514 to reply = subevent