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

Add details to triggered state for total connect alarms #24106

Merged
merged 14 commits into from
Jun 1, 2019

Conversation

austinmroczek
Copy link
Contributor

@austinmroczek austinmroczek commented May 25, 2019

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:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the [development checklist][dev-checklist]

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • [The manifest file][manifest-docs] has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
  • [n/a] Untested files have been added to .coveragerc.

austinmroczek added a commit to austinmroczek/home-assistant.github.io that referenced this pull request May 25, 2019
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):
Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Member

@balloob balloob left a 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.

@balloob balloob merged commit 12d5979 into home-assistant:dev Jun 1, 2019
@balloob balloob mentioned this pull request Jun 26, 2019
frenck pushed a commit to home-assistant/home-assistant.io that referenced this pull request Jun 29, 2019
alandtse pushed a commit to alandtse/home-assistant that referenced this pull request Oct 12, 2019
…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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants