-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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
Add details to triggered state for total connect alarms #24106
Conversation
update to latest HA
it is a burglar or fire or carbon monoxide so automations can take appropriate actions. Updated TotalConnect component to handle these new states.
Also bumps total_connect_client to 0.27.
Adds detail on the trigger source. See home-assistant/core#24106
@@ -59,9 +59,15 @@ def state(self): | |||
"""Return the state of the device.""" | |||
return self._state | |||
|
|||
@property | |||
def state_attributes(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are not allowed to implement state_attributes. Implement device_state_attributes
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to device_state_attributes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok to merge when final comment addressed.
Adds detail on the trigger source. See home-assistant/core#24106
…nt#24106) * Bump skybellpy to 0.4.0 * Bump skybellpy to 0.4.0 in requirements_all.txt * Added extra states for STATE_ALARM_TRIGGERED to allow users to know if it is a burglar or fire or carbon monoxide so automations can take appropriate actions. Updated TotalConnect component to handle these new states. * Fix const import * Fix const import * Fix const imports * Bump total-connect-client to 0.26. * Catch details of alarm trigger in state attributes. Also bumps total_connect_client to 0.27. * Change state_attributes() to device_state_attributes()
Description:
Update to totalconnect component allows it to handle "triggered" state and provide detail such as police, fire or carbon monoxide.
Related issue (if applicable):
Per discussion at home-assistant/architecture#231
Pull request with documentation for home-assistant.io (if applicable):
home-assistant/home-assistant.io#9517
Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest
.requirements_all.txt
by runningpython3 -m script.gen_requirements_all
..coveragerc
.