Mmodarre / pyfujitsu_for_homeassistant

MIT License
31 stars 33 forks source link

entity not available when operation mode set to Auto #9

Open Rydcal opened 5 years ago

Rydcal commented 5 years ago

I've noticed recently that when HA (0.94.3) restarts and the system is in operation_mode state 'auto' I get an error in the log, "Error while setting up platform fujitsu_general_heatpump." To get the it working again I need to change the unit to Cool, Heat or Off either via remote or FGLAir and then restart HA. If the unit is set to anything other than Auto, the problem doesn't seem to occur.

More from the traceback: File "/home/homeassistant/.homeassistant/custom_components/fujitsu_general_heatpump/climate.py", line 94, in init self._current_operation = FUJITSU_TO_HA_STATE[self.current_operation] KeyError: 'auto'

chiefcomm commented 5 years ago

I notice exactly the same behaviour - from which HA version I do not know but I certainly notice it in 0.94.x and above.

meichthys commented 4 years ago

Still seems to be an issue in 0.103 For now I'm avoiding the 'auto' setting.