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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IntesisBox + IntesisHome local support #57883

Closed
wants to merge 1 commit into from

Conversation

jnimmo
Copy link
Contributor

@jnimmo jnimmo commented Oct 17, 2021

Breaking change

Proposed change

Adds support for IntesisBox devices and local control of some IntesisHome devices.
Adds foundations for config flow, to follow in future PR.

Bump version of pyIntesisHome to 1.8.1 - PR jnimmo/pyIntesisHome@89f0f7e

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

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 has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 馃 Silver
  • 馃 Gold
  • 馃弳 Platinum

To help with the load of incoming pull requests:

@rklomp
Copy link
Contributor

rklomp commented Oct 19, 2021

Thanks for the merge request @jnimmo! I have tested this with my intesishome device via the new local polling option and it works 馃憤馃徏

@jnimmo
Copy link
Contributor Author

jnimmo commented Oct 19, 2021

Great to hear, thanks for that. I've also got Config Flow working nicely, awaiting writing some tests for it as config flow needs to have 100% coverage - so I'll be looking at the tests you added for pyintesishome to point me in the right direction, thank you.

@AAlmarwani93
Copy link

Hello @jnimmo is this currently working on the newest version of home assistant or not as I am trying to add the integration yet it is not working not sure why though.

@prjcarr
Copy link

prjcarr commented Nov 26, 2021

Is there any ETA on when this will be merged into core? Really looking forward to the local polling option.

@jnimmo
Copy link
Contributor Author

jnimmo commented Dec 10, 2021

Hello @jnimmo is this currently working on the newest version of home assistant or not as I am trying to add the integration yet it is not working not sure why though.

Hasn't been integrated yet - awaiting a code review

Copy link
Member

@bdraco bdraco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We no longer accept changes to YAML configuration. Configuration YAML in platform sections in existing integrations is frozen until the integration is refactored to use a config flow.

https://github.com/home-assistant/architecture/blob/master/adr/0007-integration-config-yaml-structure.md

This integration needs to be converted to use a config flow first.

You can get started with the helper script
python3 -m script.scaffold config_flow

https://developers.home-assistant.io/docs/config_entries_config_flow_handler#defining-your-config-flow

Thanks 馃憤

Dev automation moved this from By Code Owner to Review in progress Dec 10, 2021
@jnimmo
Copy link
Contributor Author

jnimmo commented Dec 10, 2021

We no longer accept changes to YAML configuration. Configuration YAML in platform sections in existing integrations is frozen until the integration is refactored to use a config flow.

https://github.com/home-assistant/architecture/blob/master/adr/0007-integration-config-yaml-structure.md

This integration needs to be converted to use a config flow first.

You can get started with the helper script

python3 -m script.scaffold config_flow

https://developers.home-assistant.io/docs/config_entries_config_flow_handler#defining-your-config-flow

Thanks 馃憤

Thanks for the update. After spending many hours on getting this PR ready it is disappointing to not have had a heads up on the change of this requirement.

I have config flow support already in the https://github.com/jnimmo/home-assistant/tree/intesishome-config-flow branch however won't have time in the near future to write the required unit tests for config flow support.

If anyone is able to assist with writing some config flow unit tests please let me know, unsure on how much of the functionality is required to be tested.

This PR and dependency upgrade is also required for bug fixes and stability improvements.

@bdraco
Copy link
Member

bdraco commented Dec 10, 2021

We can accept a dependency update as long as it doesn't require changing the yaml schema 馃憤

@evaliukonis
Copy link

evaliukonis commented Dec 12, 2021

@jnimmo maybe you can create HACS repo and we can use as hass plugin? I also waiting internal API support.

@peledzius
Copy link

There is a bug displaying outdoor_temp attribute when value is exactly 0 that I mentioned in #60259.

I replaced my default integration with this PR, but this bug exists here too.

Updating above line to if self._outdoor_temp is not None: fixes the issue.

@jnimmo Please update this PR before it's merged and thank you for your hard work with this PR.

@prjcarr

This comment was marked as off-topic.

@peledzius

This comment was marked as off-topic.

@evaliukonis
Copy link

PR exist for wrong negative outdoor temp issue https://github.com/jnimmo/pyIntesisHome/pull/39

@prjcarr

This comment was marked as off-topic.

@peledzius
Copy link

peledzius commented Feb 16, 2022

I noticed after I reboot my router with WiFI, it does not update outdoor temperature anymore. Logs showed nothing(with debug enabled). Though I can still power on/off my unit.

@mn-box

This comment was marked as off-topic.

@github-actions
Copy link

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days.
Thank you for your contributions.

@github-actions github-actions bot added the stale label Jan 19, 2023
@nerijus
Copy link

nerijus commented Jan 19, 2023

Please don't close it.

@github-actions github-actions bot removed the stale label Jan 19, 2023
@marcelveldt marcelveldt marked this pull request as draft June 7, 2023 11:10
@marcelveldt
Copy link
Member

I've marked this PR as draft, as changes are requested that need to be processed first or more discussion is needed.
Please un-draft it once it is ready for review again by clicking the "Ready for review" button.

Thanks! 馃憤

Learn more about our pull request process.

@github-actions
Copy link

github-actions bot commented Sep 6, 2023

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days.
Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 6, 2023
@nerijus
Copy link

nerijus commented Sep 7, 2023

@jnimmo , I'd suggest updating this PR with config flow support, maybe someone will help with unit tests?

@github-actions github-actions bot removed the stale label Sep 7, 2023
@jnimmo
Copy link
Contributor Author

jnimmo commented Sep 7, 2023

That's a great idea - let me see what I can do this weekend.

@tweemeterjop

This comment was marked as off-topic.

@Preference22

This comment was marked as off-topic.

@frenck
Copy link
Member

frenck commented Oct 6, 2023

Because there hasn't been any activity on this PR for quite some time now, I've decided to close it for being stale.

Feel free to re-open this PR when you are ready to pick up work on it again 馃憤

../Frenck

@frenck frenck closed this Oct 6, 2023
Dev automation moved this from Review in progress to Cancelled Oct 6, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Dev
  
Cancelled
Development

Successfully merging this pull request may close these issues.

Intesis Home connection gets lost and is never restored