feat(service): add update_state
service to force alarm updates
#165
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issues
Proposed Changes:
Add
update_state
service so that users can trigger a full update manually (through lovelace dashboard) or programmatically (through automations).Add the Update Button
Add a button in the Lovelace dashboard as follows:
The screenshot below is a configuration example; update it based on your needs:
![image](https://private-user-images.githubusercontent.com/1560405/332070818-eb971b7d-ee09-4b84-bc95-ba0dbdb75de6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NTE1MjAsIm5iZiI6MTcxOTc1MTIyMCwicGF0aCI6Ii8xNTYwNDA1LzMzMjA3MDgxOC1lYjk3MWI3ZC1lZTA5LTRiODQtYmM5NS1iYTBkYmRiNzVkZTYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYzMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MzBUMTI0MDIwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDM2YTE1NDk2ODgzZmQ0OWNlNjQwZDA3ZjY0Y2E3ZDRlYjEyNjQwYWViN2NhZTU5YTcyYTk2MDI5YzM2Y2RkNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.n0Yur1PfFzASHEZVMW2jOS89zdcdVkxqNEKEwH-6i8o)
Testing:
Trigger
update_state
service.Extra Notes (optional):
n/a
Checklist