Closed martonmodis13 closed 4 years ago
Just want to chime in here on the issue with the bac-002. The communication via MQTT does seem to work, however systemMode and fanMode do not actually change anything on the termostat itself.
I also wanted to mention that I did the original firmware conversion BAC-002-ALW via Tuya Convert and it worked without problems!
Keep up the great work!
@JoostHman Did you update your topics for all actions including fan_mode topics? I can't test with mine as my situation is a gas boiler and hydronic with no fan coils.
Hi Austwhite, thanks for the quick reaction. I did update the topics, and looking at the MQTT messages I copies below I think that it is working. I also copied the configuration.yaml file below. I still need to sort out some bits but overall it is working except for the systemMode and fanMode,
During this MQTT message exchange my termostat has been on heating (sun icon) all the time while changing the system mode setting via Home Assistant.
These are the MQTT messages.
_Message 66 received on homeassistant/hvac/tu/things/thermostat/properties at 9:02 AM: { "idx": "thermostat_upstairs", "ip": "192.168.1.177", "firmware": "1.00", "temperature": 20, "targetTemperature": 5, "deviceOn": true, "schedulesMode": "off", "ecoMode": false, "locked": false, "systemMode": "cool", "fanMode": "low" } QoS: 0 - Retain: false Message 65 received on homeassistant/hvac/tu/things/thermostat/properties/systemMode at 9:02 AM: cool QoS: 0 - Retain: false Message 64 received on homeassistant/hvac/tu/things/thermostat/properties/deviceOn at 9:02 AM: true QoS: 0 - Retain: false Message 63 received on homeassistant/hvac/tu/things/clock/properties at 9:01 AM: { "ntpServer": "pool.ntp.org", "timeZoneServer": "http://worldtimeapi.org/api/ip", "epochTime": 1585645286, "epochTimeFormatted": "2020-03-31 09:01:26", "validTime": true, "timezone": "Europe/Madrid", "raw_offset": 3600, "dst_offset": 3600 } QoS: 0 - Retain: false Message 62 received on homeassistant/hvac/tu/things/thermostat/properties at 9:00 AM: { "idx": "thermostat_upstairs", "ip": "192.168.1.177", "firmware": "1.00", "temperature": 20, "targetTemperature": 5, "deviceOn": true, "schedulesMode": "off", "ecoMode": false, "locked": false, "systemMode": "fan_only", "fanMode": "low" } QoS: 0 - Retain: false Message 61 received on homeassistant/hvac/tu/things/thermostat/properties/systemMode at 9:00 AM: fanonly QoS: 0 - Retain: false
Configuration.yaml entry:
climate:
platform: mqtt name: thermostat_upstairs power_command_topic: "homeassistant/hvac/tu/things/thermostat/properties/deviceOn" payload_on: "true" payload_off: "false" temperature_command_topic: "homeassistant/hvac/tu/things/thermostat/properties/targetTemperature" temperature_state_topic: "homeassistant/hvac/tu/thermostat/properties" temperature_state_template: "{{ value_json['targetTemperature'] | round(1) }}" current_temperature_topic: "homeassistant/hvac/tu/things/thermostat/properties" current_temperature_template: "{{states('sensor.thermostat_current_temperature')}}" mode_command_topic: "homeassistant/hvac/tu/things/thermostat/properties/systemMode" mode_state_topic: "homeassistant/hvac/tu/things/thermostat/properties" mode_state_template: > {% if value_json.deviceOn != true %} off {% elif value_json.schedulesMode == 'auto' %} auto {% else %} "{{value_json.systemMode}}" {% endif %} modes:
Hi! I saw that the systemMode and fanMode have not been updated from Wifi Module to MCU. I fixed it in my fork, releas 1.05b https://github.com/fashberg/WThermostatBeca
Please try and give feedback!
Kind Regards Folke
Fantastic, this works now! One question regarding the state flag in the message below. Why would this say "cooling" if systemMode is "heat" what is the purpose? Update: I saw this has to do with the custom hardware modification, this is not an issue.
Message 34 received on homeassistant/hvac/tu/stat/things/thermostat/properties at 10:38 AM:
{ "idx": "thermostat_upstairs", "ip": "192.168.1.177", "firmware": "1.05b", "temperature": 20.5, "targetTemperature": 23.5, "deviceOn": true, "schedulesMode": "off", "ecoMode": false, "locked": false, "systemMode": "heat", "fanMode": "medium", "mode": "heat", "state": "cooling" }
Thanks a lot :-)
On Tue, Mar 31, 2020 at 10:31 PM Folke notifications@github.com wrote:
Hi! I saw that the systemMode and fanMode have not been updated from Wifi Module to MCU. I fixed it in my fork, releas 1.05b https://github.com/fashberg/WThermostatBeca
Please try and give feedback!
Kind Regards Folke
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/klausahrenberg/WThermostatBeca/issues/86#issuecomment-606857941, or unsubscribe https://github.com/notifications/unsubscribe-auth/APAAEDZDG4HJJZBAE54CHF3RKJHKBANCNFSM4LOW2QCA .
It's now also fixed in version 1.02
Hi @JoostHman
Update: I saw this has to do with the custom hardware modification, this is not an issue.
Yes, i guess the setting "Relay at GPIO 5" got enabled. Otherwise this property will not be outputted.
Hi all. am i got it correct: fan control on fw by Klaus works only with HW mod? i can't get it wok iether on my BAC-002ALW... (no HW mod yet)
Hi! First of all thanks for your great job,firmware on my bht-002 devices work perfectly. The problem: From Home assistant with mqtt I can't set the systemMode and fanMode.(on bac-002) Model bht-002 work correctly,but iI think bac-002 cannot be integrated into Home assistant yet. Any ideas or solutions?