-
Notifications
You must be signed in to change notification settings - Fork 218
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
Home Assistant Driver #3089
Home Assistant Driver #3089
Conversation
This should be against the develop branch not main. @riley206 you can modify the branch by changing the branch at the top of the pr and clicking edit. |
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.
Really good job starting out @riley206. I have taken to add some additions/modifications that should help it be better
services/core/PlatformDriverAgent/platform_driver/interfaces/home_assistant.py
Outdated
Show resolved
Hide resolved
services/core/PlatformDriverAgent/platform_driver/interfaces/home_assistant.py
Outdated
Show resolved
Hide resolved
services/core/PlatformDriverAgent/platform_driver/interfaces/home_assistant.py
Outdated
Show resolved
Hide resolved
services/core/PlatformDriverAgent/platform_driver/interfaces/home_assistant.py
Outdated
Show resolved
Hide resolved
services/core/PlatformDriverAgent/platform_driver/interfaces/home_assistant.py
Outdated
Show resolved
Hide resolved
services/core/PlatformDriverAgent/platform_driver/interfaces/home_assistant.py
Outdated
Show resolved
Hide resolved
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.
Please document all of your functions in rst format. Especially the public ones (the ones the platform driver will call).
services/core/PlatformDriverAgent/platform_driver/interfaces/home_assistant.py
Outdated
Show resolved
Hide resolved
services/core/PlatformDriverAgent/platform_driver/interfaces/home_assistant.py
Outdated
Show resolved
Hide resolved
services/core/PlatformDriverAgent/platform_driver/interfaces/home_assistant.py
Outdated
Show resolved
Hide resolved
services/core/PlatformDriverAgent/platform_driver/interfaces/home_assistant.py
Outdated
Show resolved
Hide resolved
services/core/PlatformDriverAgent/platform_driver/interfaces/home_assistant.py
Outdated
Show resolved
Hide resolved
@riley206 Update documentation to rst and move it to docs under docs/source/agent-framework/driver-framework/home_assistant directory and also make sure there is a link to this document from docs/source/agent-framework/driver-framework/drivers-overview.rst Also other documentation updates that would be useful: Mention how to see the list of devices - i.e. specify device = entity and home assistant prefixes thermostats with climate. and light with light. |
@riley206 Could you make errors to raise exceptions instead of suppressing it with just _log.error. Warnings are okay to just log, but when there are actual errors such as writing to a read-only point or writing a wrong value the error should get propagated to the calling agent/user. So raise the exception or custom IOError or ValueError in addition to _log.error |
…copy and paste errors in error strings
# Conflicts: # docs/source/agent-framework/driver-framework/home-assistant/HomeAssistantDriver.rst # services/core/PlatformDriverAgent/tests/test_home_assistant.py
Home assistant updates
Description
This is a pull request to add the Home Assistant Driver to the VOLTTRON repository.
Type of change
How Has This Been Tested?
This has been tested by running the driver on the same network as our Home Assistant instance with real devices such as thermostats and lights connected to Home Assistant.
Checklist: