Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT Topics #61

Closed
emildevil opened this issue Mar 28, 2019 · 9 comments
Closed

MQTT Topics #61

emildevil opened this issue Mar 28, 2019 · 9 comments
Labels
homekit question Further information is requested stale to be confirmed Reported but not yet confirmed

Comments

@emildevil
Copy link

System
MG5050 USB307 and IP150

Describe the bug
Stay and Sleep Arm also receives regular Arm.

Hi there - is it possible to have a separate state for Arm, behavior right now is when you Sleep/Stay Arm you also receive a Arm message which theoretically is correct. This makes it harder to maintain state across STAY/ARM/SLEEP/DISARM - easy for ARM/DISARM or STAY/SLEEP/DISARM but struggling with the combination.

Kind regards, Emi

@emildevil emildevil added bug Something isn't working to be confirmed Reported but not yet confirmed labels Mar 28, 2019
@jpbarraca
Copy link
Collaborator

Hi,

I'm not sure I fully understood your comment. In paradox/states/partitions/PARTITION_NAME/current you will have information about the current state.

This is intended for homekit but can be used for other means.

@emildevil
Copy link
Author

Hi there,

Am using with homekit and works great - let me try and explain;

Below messages from ARM/DISARM and STAY - SLEEP is same as STAY;

Arm Panel

paradox/states/partitions/Outside/arm - "True"
paradox/states/partitions/Outside/current - "AWAY_ARM"

Disarm Panel

paradox/states/partitions/Outside/arm - "False"
paradox/states/partitions/Outside/current - "DISARMED"

Arm Stay Panel

paradox/states/partitions/Outside/arm - "True"
paradox/states/partitions/Outside/current "AWAY_ARM"
paradox/states/partitions/Outside/stay_arm - "True"

Disarm from Stay Panel
paradox/states/partitions/Outside/stay_arm - "False"
paradox/states/partitions/Outside/arm - "False"
paradox/states/partitions/Outside/current - "DISARMED"

As you can see the paradox/states/partitions/Outside/arm is always present regardless of the mode, this makes it difficult to follow the state through the messages. If there was a message like paradox/states/partitions/Outside/full_arm the states would be separate, hope im explaining ok. Maybe a simpler view is not to get the paradox/states/partitions/Outside/arm True messages when in SLEEP or STAY, just the false as it would indicate the partition is disarmed.

So given the above if I filter only on;

paradox/states/partitions/Outside/stay_arm - "True/False"
paradox/states/partitions/Outside/sleep_arm - "True/False"
paradox/states/partitions/Outside/arm - "False"

I can get accurate state of SLEEP/STAY and DISARM for both of these - ARM is not possible as im excluding paradox/states/partitions/Outside/arm - "True"

Kind regards, Emil

@emildevil
Copy link
Author

Just to add;

paradox/states/partitions/Outside/current_hass

Sometimes it is correct for STAY and SLEEP i.e. "armed_night", but most of the time for all armed states it is just "armed_away"

E

@jpbarraca
Copy link
Collaborator

There is a custom mapping for each platform. The mapping is limited to the states that exist in the target platform (homekit or hass).

See the configuration variables MQTT_PARTITION_HOMEBRIDGE_STATES and MQTT_PARTITION_HOMEASSISTANT_STATES as these states can be customized.

@emildevil
Copy link
Author

Thank you so much - there is still a bug somewhere as the status for ARM/STAY/SLEEP stays on armed_away most of the times - this was also the case in Tertuis's MQTTIP150 script - I could never get this to work reliable - not sure if other people are using all 3 armed states.

@iondarie
Copy link

i am using all the arm states on a daily basis and have not encountered any issues.

@emildevil
Copy link
Author

Ok so just bought a new panel as messing with a active alarm not a good idea :-)

Issue still the same for hass - states not correct for STAY and SLEEP.

Anybody that can assist me to validate this - Iondarie confirmed all states is working for him/her. Only Warnings I get;

019-04-01 16:30:20,779 - WARNING - PAI.paradox.paradox - Missing element ID in system/
2019-04-01 16:30:21,259 - WARNING - PAI.paradox.paradox - Missing type special for event: 30.3 Partial arming

Kind regards, Emil

@jpbarraca
Copy link
Collaborator

You can adjust the state map in the configuration file.
Regarding the warnings: please enable DEBUG log and send it to me at https://gitter.im/paradox-alarm-interface

@yozik04 yozik04 added homekit question Further information is requested and removed bug Something isn't working labels Apr 9, 2019
@stale
Copy link

stale bot commented Nov 28, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 28, 2019
@stale stale bot closed this as completed Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
homekit question Further information is requested stale to be confirmed Reported but not yet confirmed
Projects
None yet
Development

No branches or pull requests

4 participants