algirdasc / hass-floureon Goto Github PK
View Code? Open in Web Editor NEWFloureon (Broadlink based) thermostat integration for Home Assistant
Floureon (Broadlink based) thermostat integration for Home Assistant
i have this error in my logs. climate sitill working...
`Logger: homeassistant.core
Source: custom_components/floureon/climate.py:218
First occurred: 13:39:40 (2 occurrences)
Last logged: 15:00:45
Error executing service: <ServiceCall climate.set_temperature (c:560810a4769ad53dd070e148978ab6c1): temperature=22.0, hvac_mode=heat, entity_id=['climate.porandakute']>
Error executing service: <ServiceCall climate.set_temperature (c:64bacbd127271c862c505dd445e1f587): temperature=22.0, hvac_mode=heat, entity_id=['climate.porandakute']>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/broadlink/device.py", line 320, in send_packet
resp, _ = conn.recvfrom(2048)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1504, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1523, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 642, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 681, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 679, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 544, in async_service_temperature_set
await entity.async_set_temperature(**kwargs)
File "/config/custom_components/floureon/climate.py", line 218, in async_set_temperature
device.set_mode(BROADLINK_MODE_MANUAL, self._thermostat_loop_mode, self.thermostat_get_sensor())
File "/usr/local/lib/python3.8/site-packages/broadlink/climate.py", line 117, in set_mode
self.send_request(bytearray([0x01, 0x06, 0x00, 0x02, mode_byte, sensor]))
File "/usr/local/lib/python3.8/site-packages/broadlink/climate.py", line 36, in send_request
response = self.send_packet(0x6a, request_payload)
File "/usr/local/lib/python3.8/site-packages/broadlink/device.py", line 325, in send_packet
raise exception(-4000) # Network timeout.
broadlink.exceptions.NetworkTimeoutError: [Errno -4000] Network timeout
`
I'm getting this error at startup:
2020-06-24 17:54:05 ERROR (MainThread) [custom_components.floureon] Thermostat 192.168.x.x set_time error: The device is offline
It's the same error that appeared in mairas' version after updating some libraries, there's also an issue open for this.
It seems that it works when there's only one broadlink device connected. I have also a RM3 Mini, perhaps this detail is useful for debugging.
The device is online and accessible without problem using other tools.
Home Assistant 0.111.4 (docker under Debian 10).
Regards
Hi! First of all thank you so much for the integration! It's was not easy to find it for Beok-like devices. Can you explain how is it possible to add multiple devices in the configuration? Thank you!
Hi
After the last update to Home Assistant 0.117.5 I receive the following error:
Logger: custom_components.floureon.climate
Source: custom_components/floureon/climate.py:76
Integration: floureon (documentation, issues)
First occurred: 15:01:29 (1 occurrences)
Last logged: 15:01:29
mac option is deprecated. It will be removed in future releases. Please modify your config accordingly.
HA show warning about deprecated constant:
TEMP_CELSIUS was used from floureon, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'floureon' custom integration.
PR #38 fix this in the simple manner of replacing TEMP_CELSIUS imported constant to UnitOfTemperature.CELSIUS as suggested.
Home Assistant 2021.12.2 reports with latest hass-floureon integration:
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:549
First occurred: 1:42:29 AM (1 occurrences)
Last logged: 1:42:29 AM
Entity climate.bathroom_floor (<class 'custom_components.floureon.climate.FloureonClimate'>) implements device_state_attributes. Please report it to the custom component author.
Logger: custom_components.floureon.climate
Source: custom_components/floureon/climate.py:78
Integration: floureon (documentation, issues)
mac option is deprecated. It will be removed in future releases. Please modify your config accordingly.
Hi,
I get the following error message if I try to add your repo on my RPi4 to HA:
"https://github.com/algirdasc/hass-floureon.git is not a valid add-on repository"
HA Core version: 2022.10.05., then also tried with 2022.11.1 - no success.
Do you have any idea?
Thanks in advance!
On Beok you can select internal sensor (air temperature), external (floor temperature), both external and internal (SEN 2) to avoid overheating floor.
After updating temperature from Home Assistant it resets sensor to 0 on thermostat. Is there any way to prevent that?
Hi,
There were a lot of modification in home assistant 115 on broadlink component. After the upgrade home assistant upgrade the floureon component not orking any more.
Could you please check and fix it.
THX and BR:
P!
Logger: homeassistant.components.switch
Source: components/switch/init.py:130
Integration: Interruptor (documentation, issues)
First occurred: 04:04:00 (1 occurrences)
Last logged: 04:04:00
SwitchDevice is deprecated, modify FloureonSwitch to extend SwitchEntity
Note: Reemplace SwitchDevice to SwitchEntity in
switch.py, line 23 and 66
The following error happens to me very often. I have the thermostat as a Switch and from time to time it turns off and turns on again after a few seconds. It doesn't send the shutdown information to the thermostat, but in HA, with the conseguiebte notice by Telegram.... Alexa... Do you know what this error could be due to?
Logger: custom_components.floureon
Source: custom_components/floureon/__init__.py:70
Integration: floureon (documentation, issues)
First occurred: 5 de abril de 2022, 08:55:32 (3 occurrences)
Last logged: 09:43:06
Thermostat 192.168.31.86 read_status error: ('hysen_response_error', 'CRC check on response failed')
Dettagli registro (WARNING)
Logger: homeassistant.loader
Source: loader.py:463
First occurred: 2:49:23 (1 occurrences)
Last logged: 2:49:23
You are using a custom integration for floureon which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
Hi,
I have update to Home Assistant OS Version core-2021.7.0, python 3.9.5 on raspberry 4.
Since I updated the thermostat entity for a beok 313 it doesn't work. The reported error is: Platform error:
Logger: homeassistant.config
Source: config.py:849
First occurred: 8:51:00 (1 occurrences)
Last logged: 8:51:00
climate - Integration 'floureon' not found.
In my climate.yaml i have:
platform: floureon
name: sala
#mac: 24:df:a7:13:bc:9a #########MAC
host: 192.168.50.53 #########IP Address
use_external_temp: false
Sorry but I am new to the home assistant system. Thank you.
Hi i Have 2 pcs termostat one Is main (this turn the gas heater) second Is in room
Its possible turn main termostat via secondary ?
For example: main set 23°C in room Is 23
Secondary set 19 °C but in room Is 17
Now i need turn the relay on main
Its possible ???
I try to show into Grafana de Temperatura but not found the way.
Is possible ?
Thnaks.
Starting from 0.115.0 integration no longer works, as thermostat device is unreachable. I suspect the reason is in my network setup, where thermostat (as well as other smart devices) are in the dedicated network, which is connected to HA network interface as secondary network. This setup caused for example Broadlink based integration to stop working in 0.115.0 as well, due to wrong source IP (of primary network interface) being used for discovery and communication.
More about Broadlink issue here
Errors in the log (0.116.2):
2020-10-10 12:44:21 ERROR (MainThread) [custom_components.floureon] Thermostat 192.168.3.57 set_time error: The device is offline 2020-10-10 12:45:20 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration broadlink: cannot import name 'NetworkTimeoutError' from 'broadlink.exceptions' (/usr/local/lib/python3.8/site-packages/broadlink/exceptions.py) 2020-10-10 12:45:31 WARNING (MainThread) [custom_components.floureon] Thermostat 192.168.3.57 read_status error: The device is offline
[homeassistant.loader] No 'version' key in the manifest file for custom integration 'floureon'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'floureon'
HA 2021.3.2
Do I have to use the thermostat as a switch or as a climate to use it with an external thermometer? Im kinda having issues with both. I'm supposed to use it like a generic termostat, right? So like here(from the official home assistant, generic thermostat page):
# Example configuration.yaml entry
climate:
- platform: generic_thermostat
name: Study
heater: switch.study_heater
target_sensor: sensor.study_temperature
When in switch mode it doesnt adjust itself and I can only make it work by manually using switch.turn_on/off, (as far as I understand its supposed to set its temperature to 35 when on and to 5 when off?). Here is how it looks in the configuration.yaml file:
climate:
- platform: generic_thermostat
name: Thermostat_my_room
heater: switch.my_room_thermostat_as_switch
target_sensor: sensor.ble_temperature_thermometer
switch:
platform: floureon
name: my_room_thermostat_as_switch
host: 192.168.138.99
use_external_temp: true
When in climate mode it doesnt respond to any commands, turn on/off, set temperature, set hvac mode all dont work on the generic thermostat, but these do work on the orginal beok thermostat. Here is how it looks in the configuration.yaml file:
climate:
- platform: floureon
name: testing_thermostat
host: 192.168.138.99
use_external_temp: true
- platform: generic_thermostat
name: Thermostat_my_room
heater: climate.testing_thermostat
target_sensor: sensor.ble_temperature_thermometer
What am I doing wrong?
All works well with the BEOK thermostat except for the following issue.
When the thermostat is set to 'auto' using 'Climate: Set HVAC mode', the Thermostat Time Period and Temperature are both set incorrectly.
eg.
Thermostat time periods set as follows...
Period 1 = 8:30am 20.0 deg
Period 2 = 10:00am 21.0 deg
Period 3 = 12:00am 19.0 deg
Period 4 = 14:00am 20.0 deg
Period 5 = 17:00am 23.0 deg
Period 6 = 23:00am 15.0 deg
If current time is 10:30am then setting the Climate: Set HVAC mode' to 'auto' should result in
the Time Period 2 and a temperature of 21.0 deg.
BUT...
it actually sets the Time Period to 1 and the temperature to 16.0 deg !
The Devoloper State tool showed the following states (before Climate : Set HVAC mode )...
hvac_modes: auto, heat, off
min_temp: 5
max_temp: 40
preset_modes: none, away
current_temperature: 21.5
temperature: 21
hvac_action:
idle preset_mode: none
away_set_point: 7
manual_set_point: 21
external_temp: 0
room_temp: 21.5
loop_mode: 2
friendly_name: lounge
supported_features: 17
EDIT 3/2/2024
I think that I may have found the issue.
The official BEOK app is showing that schedule "1234567" is active, and I have selected loop "2" in the add-on settings so both should be matched.
However, when I change the hvac_mode to "auto" the temperature for the thermostat is selected from "12345, 67" schedule and not the "1234567" schedule that was set in both the app and the add-in.
Hope this helps !
MODEL: BEOK TGR87 WIFI
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/floureon/init.py:44
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: December 12, 2022 at 11:39:02 PM (1 occurrences)
Last logged: December 12, 2022 at 11:39:02 PM
[2805808576] [Errno -4000] Network timeout: No response received within 3s
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/broadlink/init.py", line 225, in hello
return next(
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1745, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1782, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 943, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call
await result
File "/config/custom_components/floureon/climate.py", line 240, in async_set_hvac_mode
device = self._thermostat.device()
File "/config/custom_components/floureon/init.py", line 44, in device
return broadlink.hello(self._host, timeout=3)
File "/usr/local/lib/python3.10/site-packages/broadlink/init.py", line 229, in hello
raise e.NetworkTimeoutError(
broadlink.exceptions.NetworkTimeoutError: [Errno -4000] Network timeout: No response received within 3s
Hello,
After the last update the integration does not work. The error is:
Invalid config for [climate.floureon]: [mac] is an invalid option for [climate.floureon]. Check: climate.floureon->mac. (See ?, line ?).
Do someone have the same problem?
Thank you very much.
Unfortunately this was closed without original issue resolution.
Even with upgraded python-broadlink to 0.15.0 Floureon thermostat connected to HA secondary network (not primary NIC) is still unreachable. As original issue is closed I am opening this one.
I think this (especially point 3.) will have to be considered in Floureon integration to work correctly as well.
currently I am getting:
2020-10-11 19:32:36 WARNING (MainThread) [custom_components.floureon] Thermostat 192.168.3.57 read_status error: [Errno -4000] Network timeout 2020-10-11 19:33:36 WARNING (MainThread) [custom_components.floureon] Thermostat 192.168.3.57 read_status error: [Errno -4000] Network timeout 2020-10-11 19:34:36 WARNING (MainThread) [custom_components.floureon] Thermostat 192.168.3.57 read_status error: [Errno -4000] Network timeout 2020-10-11 19:35:36 WARNING (MainThread) [custom_components.floureon] Thermostat 192.168.3.57 read_status error: [Errno -4000] Network timeout 2020-10-11 19:36:36 WARNING (MainThread) [custom_components.floureon] Thermostat 192.168.3.57 read_status error: [Errno -4000] Network timeout 2020-10-11 19:37:36 WARNING (MainThread) [custom_components.floureon] Thermostat 192.168.3.57 read_status error: [Errno -4000] Network timeout
Originally posted by @litinoveweedle in #5 (comment)
Hello,
Any ideas for the following error
This error originated from a custom integration.
Logger: homeassistant.core
Source: custom_components/floureon/init.py:44
Integration: floureon (documentation, issues)
First occurred: 16:30:43 (10 occurrences)
Last logged: 16:31:58
Error executing service: <ServiceCall climate.set_hvac_mode (c:681a14a3ca5105dbfd7e13b438f3aa56): entity_id=['climate.heat'], hvac_mode=heat>
Error executing service: <ServiceCall climate.set_hvac_mode (c:51f988c75dc38c33d06c58c984ed9102): entity_id=['climate.heat'], hvac_mode=auto>
Error executing service: <ServiceCall climate.set_hvac_mode (c:6bd87baa851d09e8100e44cb788d069b): entity_id=['climate.heat'], hvac_mode=auto>
Error executing service: <ServiceCall climate.set_hvac_mode (c:3efad71261fa819d039e61287600db2b): entity_id=['climate.heat'], hvac_mode=auto>
Error executing service: <ServiceCall climate.set_hvac_mode (c:835ae0a8c4fd51dd77e4f9a16fd5b694): entity_id=['climate.heat'], hvac_mode=auto>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/broadlink/init.py", line 204, in hello
return next(
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1648, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1667, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 668, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 705, in _handle_entity_call
await result
File "/config/custom_components/floureon/climate.py", line 231, in async_set_hvac_mode
device = self._thermostat.device()
File "/config/custom_components/floureon/init.py", line 44, in device
return broadlink.hello(self._host, timeout=3)
File "/usr/local/lib/python3.9/site-packages/broadlink/init.py", line 208, in hello
raise e.NetworkTimeoutError(
broadlink.exceptions.NetworkTimeoutError: [Errno -4000] Network timeout: No response received within 3s
Hi,
I keep getting this error (I'm on the last HA release)
2021-11-16 18:36:43 ERROR (SyncWorker_6) [custom_components.floureon] Thermostat 192.XX.XX.78 set_time error: [Errno -4000] Network timeout: No response received within 3s
Any idea how to solve it?
Thermostat works fin with the native app.
getting this message:
Invalid config for [climate.floureon]: [mac] is an invalid option for [climate.floureon]. Check: climate.floureon->mac. (See /config/configuration.yaml, line 28). Please check the docs at https://github.com/algirdasc/hass-floureon
Invalid config for [climate.floureon]: [mac] is an invalid option for [climate.floureon]. Check: climate.floureon->mac. (See /config/configuration.yaml, line 33). Please check the docs at https://github.com/algirdasc/hass-floureon
here my configuration.yaml
climate:
ip and mac confirmed by scanning my network
I saw the update to this component in my HACS so upgraded but it broke all the floureon thermostats in Home Assistant. Kept getting:
No module named 'homeassisant.util.unit_conversion'
in the logs. I reverted and its ok now. Not sure what the issue was - might have a dig around later if I get the chance.
The component still works ok on this version, but the new homeassistant broadlink integration broke because the manifest blocks the py broadlink library to 0.14.0 and Home Assistant needs 0.14.1 at least to work.
I changed the requirement on the my manifest.json file, and it seems to work ok, both for the broadlink integration and hass-floureon component.
@algirdasc , can you please modify the library requirement to 0.14.1, if it's ok :) ?
{
"domain": "floureon",
"name": "Floureon Thermostat",
"documentation": "https://github.com/algirdasc/hass-floureon",
"dependencies": [],
"codeowners": ["@algirdasc"],
"issue_tracker": "https://github.com/algirdasc/hass-floureon/issues",
"requirements": ["pythoncrc", "broadlink==0.14.1"]
}
Hi! I detected below WARNING in the HomeAssistant log.
I think the integration is needing a small update !
All the people using this fantastic integration will agree it !!!
Home Assistant 2022.10.3
Supervisor 2022.10.0
Operating System 9.2
Frontend 20221010.0 - latest
Logger: homeassistant.helpers.frame
Source: helpers/frame.py:77
First occurred: 20:28:50 (2 occurrences)
Last logged: 20:28:50
Detected integration that uses temperature utility. This is deprecated since 2022.10 and will stop working in Home Assistant 2022.4, it should be updated to use unit_conversion.TemperatureConverter instead. Please report issue to the custom integration author for floureon using this method at custom_components/floureon/climate.py, line 174: return convert_temperature(self._min_temp, TEMP_CELSIUS,
Detected integration that uses temperature utility. This is deprecated since 2022.10 and will stop working in Home Assistant 2022.4, it should be updated to use unit_conversion.TemperatureConverter instead. Please report issue to the custom integration author for floureon using this method at custom_components/floureon/climate.py, line 180: return convert_temperature(self._max_temp, TEMP_CELSIUS,
Not sure if its an issue but it seems that I cannot use the component as It is not showing up in integrations menu.
HACS installs repository correctly.
Maybe I am installing it incorrectly?
Thanks for help!
Hi i tried to add one of this wifi thermostates from BEOK
platform: floureon
name: FBH_Wohnzimmer
host: 192.168.10.51
use_external_temp: false
But the climate entity will not show the current values. How can i fix this?
Greetings
Suddenly, communication with the thermostat was lost in the HA. The beok program works great.
2022-11-23 22:10:38.054 WARNING (SyncWorker_4) [custom_components.floureon] Thermostat 192.168.1.174 read_status error: [Errno -4000] Network timeout: No response received within 3s
2022-11-23 22:11:38.055 WARNING (SyncWorker_1) [custom_components.floureon] Thermostat 192.168.1.174 read_status error: [Errno -4000] Network timeout: No response received within 3s
2022-11-23 22:12:38.055 WARNING (SyncWorker_2) [custom_components.floureon] Thermostat 192.168.1.174 read_status error: [Errno -4000] Network timeout: No response received within 3s
I have an issue. Yesterday it stop working at all. log from home assitant :
Logger: custom_components.floureon
Source: custom_components/floureon/init.py:53
Integration: floureon (documentation, issues)
First occurred: 16:44:48 (2152 occurrences)
Last logged: 21:12:49
Thermostat 192.168.2.6 network error: [Errno -4000] Network timeout: No response received within 3s
Thermostat 192.168.2.4 network error: [Errno -4000] Network timeout: No response received within 3s
Thermostat 192.168.2.5 network error: [Errno -4000] Network timeout: No response received within 3s
Thermostat 192.168.2.3 network error: [Errno -4000] Network timeout: No response received within 3s
Thermostat 192.168.2.9 network error: [Errno -4000] Network timeout: No response received within 3s
and the second one.
Logger: custom_components.floureon
Source: custom_components/floureon/init.py:78
Integration: floureon (documentation, issues)
First occurred: 16:20:02 (24 occurrences)
Last logged: 16:22:02
Thermostat 192.168.2.8 read_status() error: 'NoneType' object has no attribute 'auth'
Thermostat 192.168.2.9 read_status() error: 'NoneType' object has no attribute 'auth'
Thermostat 192.168.2.5 read_status() error: 'NoneType' object has no attribute 'auth'
Thermostat 192.168.2.7 read_status() error: 'NoneType' object has no attribute 'auth'
Thermostat 192.168.2.10 read_status() error: 'NoneType' object has no attribute 'auth'
I recently did the integration with a new beok thermostat and it worked correctly, yesterday after updating the home assistant, the integration no longer works, I cannot see the temperature or perform actions. Looking at the log the same error always appears:
2020-12-15 10:42:05 WARNING (SyncWorker_4) [custom_components.floureon] Thermostat 192.168.0.56 read_status error: [Errno -4000] Network timeout
Detalls del registre (WARNING)
Logger: custom_components.floureon
Source: custom_components/floureon/init.py:65
Integration: floureon (documentation, issues)
First occurred: 9:26:29 (12 occurrences)
Last logged: 9:37:29
Thermostat 192.16x.xx.xx read_status error: The device is offline
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.