Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
added NP disarmed code
Browse files Browse the repository at this point in the history
  • Loading branch information
eavanvalkenburg committed Aug 17, 2020
1 parent f7c5293 commit eddc097
Showing 1 changed file with 42 additions and 47 deletions.
89 changes: 42 additions & 47 deletions custom_components/sia/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,52 +28,47 @@
PLATFORMS = [SENSOR_DOMAIN, BINARY_SENSOR_DOMAIN, ALARM_CONTROL_PANEL_DOMAIN]

REACTIONS = {
"BA": { "type": "alarm", "new_state": "triggered" },
"PA": { "type": "alarm", "new_state": "triggered" },
"JA": { "type": "alarm", "new_state": "triggered" },
"BR": { "type": "alarm", "new_state": "previous_state" },
"CA": { "type": "alarm", "new_state": "armed_away" },
"CF": {
"type": "alarm",
"new_state": "armed_custom_bypass"
},
"CG": { "type": "alarm", "new_state": "armed_away" },
"CL": { "type": "alarm", "new_state": "armed_away" },
"CP": { "type": "alarm", "new_state": "armed_away" },
"CQ": { "type": "alarm", "new_state": "armed_away" },
"GA": { "type": "smoke", "new_state": True },
"GH": { "type": "smoke", "new_state": False },
"FA": { "type": "smoke", "new_state": True },
"FH": { "type": "smoke", "new_state": False },
"KA": { "type": "smoke", "new_state": True },
"KH": { "type": "smoke", "new_state": False },
"NL": {
"type": "alarm",
"new_state": "armed_night"
},
"OA": { "type": "alarm", "new_state": "disarmed" },
"OG": { "type": "alarm", "new_state": "disarmed" },
"OP": { "type": "alarm", "new_state": "disarmed" },
"OQ": { "type": "alarm", "new_state": "disarmed" },
"OR": { "type": "alarm", "new_state": "disarmed" },
"RP": { "type": "timestamp", "new_state_eval": "utcnow" },
"TA": { "type": "alarm", "new_state": "triggered" },
"WA": { "type": "moisture", "new_state": True },
"WH": { "type": "moisture", "new_state": False },
"YG": { "type": "timestamp", "attr": "last_message" },
"YC": { "type": "timestamp", "attr": "last_message" },
"ZZ": { "type": "timestamp", "attr": "last_message" },
"ZY": { "type": "timestamp", "attr": "last_message" },
"XI": { "type": "timestamp", "attr": "last_message" },
"YM": { "type": "timestamp", "attr": "last_message" },
"YA": { "type": "timestamp", "attr": "last_message" },
"YS": { "type": "timestamp", "attr": "last_message" },
"XQ": { "type": "timestamp", "attr": "last_message" },
"XH": { "type": "timestamp", "attr": "last_message" },
"AT": { "type": "timestamp", "attr": "last_message" },
"AR": { "type": "timestamp", "attr": "last_message" },
"YT": { "type": "timestamp", "attr": "last_message" },
"YR": { "type": "timestamp", "attr": "last_message" },
"TR": { "type": "timestamp", "attr": "last_message" }
"BA": {"type": "alarm", "new_state": "triggered"},
"PA": {"type": "alarm", "new_state": "triggered"},
"JA": {"type": "alarm", "new_state": "triggered"},
"BR": {"type": "alarm", "new_state": "previous_state"},
"CA": {"type": "alarm", "new_state": "armed_away"},
"CF": {"type": "alarm", "new_state": "armed_custom_bypass"},
"CG": {"type": "alarm", "new_state": "armed_away"},
"CL": {"type": "alarm", "new_state": "armed_away"},
"CP": {"type": "alarm", "new_state": "armed_away"},
"CQ": {"type": "alarm", "new_state": "armed_away"},
"GA": {"type": "smoke", "new_state": True},
"GH": {"type": "smoke", "new_state": False},
"FA": {"type": "smoke", "new_state": True},
"FH": {"type": "smoke", "new_state": False},
"KA": {"type": "smoke", "new_state": True},
"KH": {"type": "smoke", "new_state": False},
"NL": {"type": "alarm", "new_state": "armed_night"},
"NP": {"type": "alarm", "new_state": "disarmed"},
"OA": {"type": "alarm", "new_state": "disarmed"},
"OG": {"type": "alarm", "new_state": "disarmed"},
"OP": {"type": "alarm", "new_state": "disarmed"},
"OQ": {"type": "alarm", "new_state": "disarmed"},
"OR": {"type": "alarm", "new_state": "disarmed"},
"RP": {"type": "timestamp", "new_state_eval": "utcnow"},
"TA": {"type": "alarm", "new_state": "triggered"},
"WA": {"type": "moisture", "new_state": True},
"WH": {"type": "moisture", "new_state": False},
"YG": {"type": "timestamp", "attr": "last_message"},
"YC": {"type": "timestamp", "attr": "last_message"},
"ZZ": {"type": "timestamp", "attr": "last_message"},
"ZY": {"type": "timestamp", "attr": "last_message"},
"XI": {"type": "timestamp", "attr": "last_message"},
"YM": {"type": "timestamp", "attr": "last_message"},
"YA": {"type": "timestamp", "attr": "last_message"},
"YS": {"type": "timestamp", "attr": "last_message"},
"XQ": {"type": "timestamp", "attr": "last_message"},
"XH": {"type": "timestamp", "attr": "last_message"},
"AT": {"type": "timestamp", "attr": "last_message"},
"AR": {"type": "timestamp", "attr": "last_message"},
"YT": {"type": "timestamp", "attr": "last_message"},
"YR": {"type": "timestamp", "attr": "last_message"},
"TR": {"type": "timestamp", "attr": "last_message"},
}

0 comments on commit eddc097

Please sign in to comment.