@dchesterton, Great to see that someone has made some progress here. I’m very excited to have a chance at finally getting my texecom alarm integrated into HA. Thanks a lot for your work so far!
I’m currently trying to get set up and am getting this error when starting the container:
$ docker-compose up
texecom2mqtt is up-to-date
Attaching to texecom2mqtt
texecom2mqtt | 2020-08-19 21:30:37 - INFO: Connected to alarm, sleeping for 0.5 seconds...
texecom2mqtt | 2020-08-19 21:30:37 - INFO: Connection ready
texecom2mqtt | 2020-08-19 21:30:37 - INFO: Fetched serial number: 1044466
texecom2mqtt | 2020-08-19 21:30:37 - INFO: Logging in
texecom2mqtt | 2020-08-19 21:30:37 - DEBUG: Executing command 1
texecom2mqtt | 2020-08-19 21:30:37 - ERROR: Unhandled rejection - RangeError [ERR_INVALID_OPT_VALUE]: The value "NaN" is invalid for option "size"
Could this possibly come from my ComIP not being configured for the Crestron protocol?
I’m not sure what is causing that error but @jonnyrider had the same issue above and seemed to fix it, he might be able to shine some light on it? The app is using the Connect protocol, not the Crestron protocol, so you’ll need to configure your ComIP for the Connect protocol.
The Connect protool is the latest and greatest and the direction Texecom are promoting. It is far more capable than previous protocols. Working for me… (I know that doesn’t help)
Thanks for the advice! I tried putting the IP address in quotes but that didn’t seem to help. (Incidentally, the example yaml on https://hub.docker.com/r/dchesterton/texecom2mqtt doesn’t use quotes)
I also probably should’ve mentioned before that I have a slightly older panel, a Premier 412. I suppose this one might not at all be compatible? Please say it is…
I can arm / disarm from with Home Assistant, but when I part arm my alarm from the Texecom App the status in Home Assistant is set to pending and I get the following error:
2020-08-18 00:04:59 WARNING (MainThread) [homeassistant.components.mqtt.alarm_control_panel] Received unexpected payload: part_armed_1
Well, I gave in an ordered a Premier Elite 24 for 83 EUR which should be arriving in about a week. This is just too important to not have connected to HA. I should be back in a few weeks with some feedback and certainly more questions. Thanks, Daniel!
The app now sends log messages from the panel to the MQTT topic texecom2mqtt/XXXX/log. This is useful for doing automations based on various events. For example, I’ve set up an automation which alerts me to a bunch of failure events:
automation:
- alias: "Alarm: triggered"
trigger:
platform: state
entity_id: alarm_control_panel.house_alarm
to: triggered
action:
service: notify.phones
data_template:
title: House Alarm Triggered
message: "Last active sensor: {{ states('input_text.recently_active_alarm_sensor') }}"
data:
push:
sound:
critical: 1
volume: 1.0
This example uses iOS notifications and sends them as ‘critical’ which means your phone will still make a sound even if your phone is on silent and will show in CarPlay etc.
Obviously change your entity_ids and notification service but it should be a start at least.
Hi - I’m about to update my system to a premier elite controller with add-on communicator(s).
Hopefully someone can clarify something that is not clear to me - If I want to access the system with both the Texecom app and home assistant at the same time, will I need to install both SmartCom and ComIP or is SmartCom alone sufficient to handle both use cases?
Thank you, i’ll give it a go. I’ve installed Portainer and created the container with Daniels image but it fails constantly. However…as i’m a complete noob to this I have probably set it up completely wrong.
I don’t want to derail this thread too much so if anyone has any pointers for where I should start for idiot proof guides/help on how to set up containers it would be greatly appreciated.