Code Monkey home page Code Monkey logo

hacs-nexia-climate-integration's People

Contributors

bdraco avatar inikolaev-zz avatar ryannazaretian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

bdraco

hacs-nexia-climate-integration's Issues

Integration is using deprecated `DEVICE_CLASS_*` constants

This custom integration uses deprecated DEVICE_CLASS_* constants in its codebase.

The DEVICE_CLASS_* constants have been deprecated and replaced in Home Assistant Core 2021.12 (over a year ago). I would highly suggest updating/migrating this integration to the new enums.

For example, for the device classes supported by the sensor platform, there is now a SensorDeviceClass enum. So if a sensor previously used the DEVICE_CLASS_ENERGY constant, it should now use SensorDeviceClass.ENERGY. Other platforms (like binary_sensor, and number) provide similar enumerations for their supported device classes.

The migration thus only consists of replacing constants with an enumeration member and is, therefore, very low impact and should be fairly straightforward.

If I can help resolve any questions regarding this change or migration, feel free to ask or respond to this issue. I'm happy to help!

Kindest regards,

../Frenck

HA issue setting up component

in 104.3 I get the following error in the logs when adding the nexia component.
2020-01-22 11:10:30 ERROR (MainThread) [homeassistant.setup] Error during setup of component nexia Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 174, in _async_setup_component component.setup, hass, processed_config # type: ignore File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/nexia/__init__.py", line 83, in setup update_rate=NexiaThermostat.DISABLE_AUTO_UPDATE) File "/config/custom_components/nexia/nexia_thermostat.py", line 126, in __init__ self.login() File "/config/custom_components/nexia/nexia_thermostat.py", line 413, in login request = self._post_url("/session", payload) File "/config/custom_components/nexia/nexia_thermostat.py", line 213, in _post_url self.update() File "/config/custom_components/nexia/nexia_thermostat.py", line 449, in update force_update=True) File "/config/custom_components/nexia/nexia_thermostat.py", line 287, in _get_thermostat_json raise Exception("Nothing in the JSON") Exception: Nothing in the JSON

Is this a known issue?

Nexia pull of json data for compressor speed

Hope it's okay to leave this comment here Ryan. I have your Nexia integration running in Home Assistant. Working well except I'm noticing the following. The requested and actual compressor speed do not update in HA nor on the nexia.com/JSON page (https://www.mynexia.com/houses/?????/xxl_thermostats) but the other parameters seemed to be updating fine. This may seem strange but I've tried this several times: as soon as I run the Nexia app on my Android phone, the nexia.com/JSON compressor speeds start updating along with HA compressor speed. Any ideas?
Steve W. ([email protected])

Nexia changed to American Standard

Nexia changed websites. I am assuming this is why my nexia integration no longer works.

The new website should be https://asairhome.com/houses/<YOUR_HOUSE_ID>/climate.

Also, I uninstalled the nexia integration and it won't reinstall.

From the Log...

Unable to prepare setup for platform nexia.binary_sensor: Unable to set up component.
February 25, 2021, 12:36:05 PM – setup.py (ERROR) - message first occurred at February 25, 2021, 12:36:05 PM and shows up 3 times
Setup of nexia is taking longer than 300 seconds. Startup will proceed without waiting any longer
February 25, 2021, 12:36:05 PM – setup.py (ERROR)
Waiting on integrations to complete setup: nexia
February 25, 2021, 12:35:07 PM – bootstrap.py (WARNING) - message first occurred at February 25, 2021, 12:32:07 PM and shows up 4 times

ClimateDevice is deprecated, modify NexiaZone to extend ClimateEntity
February 25, 2021, 12:31:07 PM – Climate (WARNING)
BinarySensorDevice is deprecated, modify NexiaBinarySensor to extend BinarySensorEntity
February 25, 2021, 12:31:05 PM – Binary sensor (WARNING)

Nexia on pypi

Hi Ryan,

Thanks again for the great work on this.

I noticed your PR to home assistant here: home-assistant/core#24947

It looks like the web-scraping concern can be solved by using the mobile JSON API (https://github.com/bdraco/homebridge-nexia-thermostat). Would you consider breaking out the nexia connector from the rest of the code and putting it on pypi under the same license as home assistant?
(https://github.com/home-assistant/home-assistant/blob/dev/LICENSE.md)

If you don't have the time right now, I'm happy to have in any way I can including helping converting it to use the JSON API.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.