mww012 / hass-infinitive

Infinitive Climate Integration for Home Assistant
21 stars 5 forks source link

No Status Information Returned #9

Closed trailsurfer604 closed 2 years ago

trailsurfer604 commented 2 years ago

Control of thermostat works, but no status information is returned.

Here is what I get via dev tools:

hvac_modes: off, heat, cool, heat_cool
min_temp: 7
max_temp: 35
fan_modes: auto, low, medium, high
preset_modes: home, Hold
current_temperature: null
temperature: 19
fan_mode: null
preset_mode: home
current_humidity: null
target_humidity: null
blower_rpm: null
stage: null
override_duration: null
airflow_cfm: null
outdoor_temp: null
aux_heat: null
heatpump_coil_temp: null
heatpump_outside_temp: null
heatpump_stage: null
friendly_name: Infinity Thermostat
supported_features: 25

I am running Home Assistant 2021.10.7 with latest 0.0.8 infinitive HA integration.

Web GUI does provide this information so it's obviously being read. Just for some reason not being passed onto the integration.

image

trailsurfer604 commented 2 years ago

Upon further digging, I realized that what is happening is that one of 3 types of config status is being returned.

The following is fro pyinfinitive.py, and only configstatus is return, heandlerstatus and heatpumpstatus are returned empty

 def get_status(self):
        """Return current status of an infinitive device."""
        configstatus = self._get_configstatus(self.config_url, '')
        handlerstatus = self._get_configstatus(self.airhandler_url, '')
        heatpumpstatus = self._get_configstatus(self.heatpump_url, 'heatpump_')

        return {**configstatus, **heatpumpstatus, **handlerstatus}

GUI continues to work fine ...

mww012 commented 2 years ago

Hey, I commented on your thread in the HA forums before I saw this issue. You're welcome to continue the conversation here if you'd prefer.

First thing we want to do is make sure infinitive itself is actually getting the data from the unit.

You can hit the api endpoints from a browser and get the json response from infinitive. That will at least let us know if we have an infinitive issue or there's something going on with pyinfinitive.

trailsurfer604 commented 2 years ago

Hi,

Thank you for reaching out!

I've narrowed the issue down to the actual infinitive instance running on r-pi. Although I do have a heat pump and an air handler unit, going to those JSON URLs (/api/airhandler and /api/heatpump) generates a 404 on the server side. I checked server logs and yes, that's what it does.

Unfortunately, there seems to be nothing to configure on that side, and no way to even play with its operation other than learning GO and recompiling. I would love to reach out to the author, but I think he's abandoned this project.

Thank You,


Seva

On Sat, Nov 6, 2021 at 8:17 AM mww012 @.***> wrote:

Hey, I commented on your thread in the HA forums before I saw this issue. You're welcome to continue the conversation here if you'd prefer.

First thing we want to do is make sure infinitive itself is actually getting the data from the unit.

You can hit the api endpoints from a browser and get the json response from infinitive. That will at least let us know if we have an infinitive issue or there's something going on with pyinfinitive.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mww012/hass-infinitive/issues/9#issuecomment-962466271, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR5XCGVEYOPR2VETAYDWR7LUKVIIVANCNFSM5HOKQMQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mww012 commented 2 years ago

Closing issue.