Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing a value works at first, but is then reset to it's original value #766

Closed
daad919 opened this issue Nov 23, 2022 · 4 comments
Closed
Labels
help wanted Extra attention is needed

Comments

@daad919
Copy link

daad919 commented Nov 23, 2022

Bug description
I'm using home assistant & node red to set mode and temp, and every couple of days, i'm not able to set the mode and temp anymore. If i change the mode from ex day to auto, it changes back to day after a second delay.
Wen i'm using the webbrowser to write the command, i get the error: write command failed.

Only thing that helps is to restart the ems in the webbrowser. Then i can set the temp and mode as i wish.

I've already tried the fix with sending 0 to boiler/selflowtemp every few seconds, but the system does not respond.
Heatingactivated is set to on, and i can't write to this command.

I'm on ems V3.4.4

After restart ems in browser
All just works, see log

2022-11-23 16:46:40.233 D 636: [mqtt] Publishing topic homeassistant/sensor/ems-esp/boiler_wwstarts/config (#280, retain=1, retry=1, size=244, pid=1)
2022-11-23 16:46:40.334 D 637: [mqtt] Publishing topic homeassistant/sensor/ems-esp/boiler_wwworkm/config (#281, retain=1, retry=1, size=283, pid=1)
2022-11-23 16:46:40.435 D 638: [mqtt] Publishing topic ems-esp/boiler_data_ww (#282, retain=0, retry=1, size=484, pid=1)
2022-11-23 16:46:40.536 D 639: [mqtt] Publishing topic ems-esp/boiler_data (#283, retain=0, retry=1, size=643, pid=1)
2022-11-23 16:46:40.576 D 640: [telegram] Sending read Tx [#45], telegram: 0B 98 12 00 1B
2022-11-23 16:46:40.637 D 641: [mqtt] Publishing topic ems-esp/thermostat_data (#284, retain=0, retry=1, size=1493, pid=1)
2022-11-23 16:46:40.672 D 642: [emsesp] Last Tx read successful
2022-11-23 16:46:40.672 D 643: [emsesp] This telegram (RCErrorMessage) is not recognized by the EMS bus
2022-11-23 16:46:40.672 D 644: [emsesp] No telegram type handler found for ID 0x12 (src 0x18)
2022-11-23 16:46:40.738 D 645: [mqtt] Publishing topic homeassistant/sensor/ems-esp/thermostat_lastcode/config (#285, retain=1, retry=1, size=215, pid=1)
2022-11-23 16:46:40.839 D 646: [mqtt] Publishing topic homeassistant/number/ems-esp/thermostat_intoffset/config (#286, retain=1, retry=1, size=362, pid=1)
2022-11-23 16:46:40.940 D 647: [mqtt] Publishing topic homeassistant/number/ems-esp/thermostat_minexttemp/config (#287, retain=1, retry=1, size=371, pid=1)
2022-11-23 16:46:41.041 D 648: [mqtt] Publishing topic homeassistant/switch/ems-esp/thermostat_damping/config (#288, retain=1, retry=1, size=342, pid=1)
2022-11-23 16:46:41.076 D 649: [telegram] Sending read Tx [#46], telegram: 0B 98 A2 00 1B
2022-11-23 16:46:41.142 D 650: [mqtt] Publishing topic homeassistant/select/ems-esp/thermostat_building/config (#289, retain=1, retry=1, size=288, pid=1)
2022-11-23 16:46:41.172 D 651: [emsesp] Last Tx read successful
2022-11-23 16:46:41.172 D 652: [emsesp] This telegram (RCError) is not recognized by the EMS bus
2022-11-23 16:46:41.172 D 653: [emsesp] No telegram type handler found for ID 0xA2 (src 0x18)
2022-11-23 16:46:41.243 D 654: [mqtt] Publishing topic homeassistant/select/ems-esp/thermostat_wwmode/config (#290, retain=1, retry=1, size=265, pid=1)
2022-11-23 16:46:41.340 D 655: [command] Calling command 'thermostat/mode' (mode) with value night
2022-11-23 16:46:41.340 D 656: [emsesp] Write command successful
2022-11-23 16:46:41.354 D 657: [mqtt] Publishing topic homeassistant/select/ems-esp/thermostat_wwcircmode/config (#291, retain=1, retry=1, size=311, pid=1)
2022-11-23 16:46:41.455 D 658: [mqtt] Publishing topic homeassistant/select/ems-esp/thermostat_wwcircprog/config (#292, retain=1, retry=1, size=311, pid=1)
2022-11-23 16:46:41.556 D 659: [mqtt] Publishing topic homeassistant/switch/ems-esp/thermostat_wwdisinfecting/config (#293, retain=1, retry=1, size=341, pid=1)
2022-11-23 16:46:41.576 D 660: [telegram] Sending write Tx [#59], telegram: 0B 10 3D 07 00
2022-11-23 16:46:41.592 D 661: [emsesp] No telegram type handler found for ID 0x3D (src 0x0B)
2022-11-23 16:46:41.620 D 662: [emsesp] Last Tx write successful
2022-11-23 16:46:41.620 D 663: [telegram] Sending post validate read, type ID 0x3D to dest 0x10
2022-11-23 16:46:41.657 D 664: [mqtt] Publishing topic homeassistant/select/ems-esp/thermostat_wwdisinfectday/config (#294, retain=1, retry=1, size=336, pid=1)
2022-11-23 16:46:41.758 D 665: [mqtt] Publishing topic homeassistant/number/ems-esp/thermostat_wwdisinfecthour/config (#295, retain=1, retry=1, size=305, pid=1)
2022-11-23 16:46:41.859 D 666: [mqtt] Publishing topic homeassistant/number/ems-esp/thermostat_wwmaxtemp/config (#296, retain=1, retry=1, size=355, pid=1)
2022-11-23 16:46:41.960 D 667: [mqtt] Publishing topic homeassistant/switch/ems-esp/thermostat_wwonetimekey/config (#297, retain=1, retry=1, size=353, pid=1)
2022-11-23 16:46:42.022 D 668: [telegram] Sending read Tx [#60], telegram: 0B 90 3D 00 1B
2022-11-23 16:46:42.061 D 669: [mqtt] Publishing topic homeassistant/sensor/ems-esp/thermostat_wwswitchtime/config (#298, retain=1, retry=1, size=281, pid=1)
2022-11-23 16:46:42.162 D 670: [mqtt] Publishing topic homeassistant/sensor/ems-esp/thermostat_wwcircswitchtime/config (#299, retain=1, retry=1, size=317, pid=1)
2022-11-23 16:46:42.191 D 671: [emsesp] Last Tx read successful
2022-11-23 16:46:42.263 D 672: [mqtt] Publishing topic homeassistant/sensor/ems-esp/thermostat_wwholidays/config (#300, retain=1, retry=1, size=265, pid=1)
2022-11-23 16:46:42.364 D 673: [mqtt] Publishing topic homeassistant/sensor/ems-esp/thermostat_wwvacations/config (#301, retain=1, retry=1, size=270, pid=1)
2022-11-23 16:46:42.465 D 674: [mqtt] Publishing topic ems-esp/thermostat_data (#302, retain=0, retry=1, size=1494, pid=1)
2022-11-23 16:46:42.566 D 675: [mqtt] Publishing topic ems-esp/thermostat_data (#303, retain=0, retry=1, size=1494, pid=1)
2022-11-23 16:46:42.569 D 676: [mqtt] Removing HA config for mixer_hc2_flowtemphc
2022-11-23 16:46:42.569 D 677: [mqtt] Removing HA config for mixer_hc2_valvestatus
2022-11-23 16:46:42.569 D 678: [mqtt] Removing HA config for mixer_hc2_flowsettemp
2022-11-23 16:46:42.569 D 679: [mqtt] Removing HA config for mixer_hc2_pumpstatus
2022-11-23 16:46:42.569 D 680: [mqtt] Removing HA config for mixer_hc2_activated
2022-11-23 16:46:42.569 D 681: [mqtt] Removing HA config for mixer_hc2_valvesettime
2022-11-23 16:46:42.597 D 682: [telegram] Sending read Tx [#61], telegram: 0B 90 3D 1B 20

Screenshots
If applicable, add screenshots to help explain your problem.

Device information
{
"System Status": {
"version": "3.4.4",
"uptime": "000+04:32:48.537",
"freemem": 128,
"reset reason": "Power on reset / APP CPU reset by PRO CPU"
},
"Network Status": {
"connection": "Ethernet",
"hostname": "ems-esp",
"MAC": "8C:CE:4E:94:BC:17",
"IPv4 address": "10.0.1.201/255.255.255.0",
"IPv4 gateway": "10.0.1.1",
"IPv4 nameserver": "10.0.1.1",
"phy type": 1,
"eth power": 16,
"eth phy addr": 1,
"eth clock mode": 0,
"static ip config": true,
"enable IPv6": false,
"low bandwidth": false,
"disable sleep": false,
"AP provision mode": "disconnected",
"AP security": "wpa2",
"AP ssid": "ems-esp"
},
"NTP Status": {
"network time": "connected",
"enabled": true,
"server": "time.google.com",
"tz label": "Europe/Amsterdam"
},
"OTA Status": {
"enabled": true,
"port": 8266
},
"MQTT Status": {
"MQTT status": "connected",
"MQTT publishes": 38182,
"MQTT publish fails": 0,
"enabled": true,
"client_id": "ems-esp",
"keep alive": 36000,
"clean session": true,
"base": "ems-esp",
"discovery prefix": "homeassistant",
"nested format": 1,
"ha enabled": true,
"mqtt qos": 0,
"mqtt retain": false,
"publish time boiler": 10,
"publish time thermostat": 1,
"publish time solar": 10,
"publish time mixer": 10,
"publish time other": 1,
"publish time sensor": 1,
"publish single": false,
"publish2command": false,
"send response": false
},
"Syslog Status": {
"enabled": false
},
"Sensor Status": {
"temperature sensors": 0,
"temperature sensor reads": 0,
"temperature sensor fails": 0,
"analog sensors": 0,
"analog sensor reads": 0,
"analog sensor fails": 0
},
"API Status": {
"API calls": 0,
"API fails": 0
},
"Bus Status": {
"bus status": "connected",
"bus protocol": "Buderus",
"bus telegrams received (rx)": 21492,
"bus reads (tx)": 5516,
"bus writes (tx)": 20,
"bus incomplete telegrams": 0,
"bus reads failed": 0,
"bus writes failed": 0,
"bus rx line quality": 100,
"bus tx line quality": 100
},
"Settings": {
"board profile": "E32",
"tx mode": 1,
"ems bus id": 11,
"shower timer": false,
"shower alert": false,
"rx gpio": 5,
"tx gpio": 17,
"dallas gpio": 4,
"pbutton gpio": 33,
"led gpio": 2,
"hide led": false,
"notoken api": true,
"readonly mode": false,
"fahrenheit": false,
"dallas parasite": false,
"bool format": 1,
"bool dashboard": 1,
"enum format": 1,
"analog enabled": true,
"telnet enabled": true
},
"Devices": [
{
"type": "Boiler",
"name": "BK13/BK15/Smartline/GB1x2",
"device id": "0x08",
"product id": 64,
"version": "03.05",
"entities": 67,
"handlers received": "0x10 0x11 0x15 0x1C 0x18 0x19 0x34",
"handlers fetched": "0x14 0x16 0x33",
"handlers pending": "0xBF 0xC2 0x1A 0x35 0x26 0x2A 0xD1 0xE3 0xE4 0xE5 0xE6 0xE9 0xEA",
"handlers ignored": "0x04"
},
{
"type": "Thermostat",
"name": "ES72/RC20",
"device id": "0x18",
"product id": 113,
"version": "02.01",
"entities": 1,
"handlers received": "0xAF",
"handlers pending": "0xA3 0x06 0xA2 0x12 0xAE 0xAD",
"handlers ignored": "0x01 0xA6 0x35"
},
{
"type": "Thermostat",
"name": "RC35",
"device id": "0x10",
"product id": 86,
"version": "21.04",
"entities": 93,
"handlers received": "0xA3 0x06 0xA2 0x12 0x42 0x4C 0x52 0x51 0x53 0x56 0x5C 0x5B 0x5D 0x60 0x38 0x39",
"handlers fetched": "0x3E 0x3D 0x3F 0x48 0x47 0x49 0xA5 0x37",
"handlers ignored": "0x01 0x1A 0x13 0xAC 0xA4 0x35 0x9D 0x05"
},
{
"type": "Mixer",
"name": "MM10",
"device id": "0x21",
"product id": 69,
"version": "02.00",
"entities": 6,
"handlers received": "0xAB",
"handlers fetched": "0xAA",
"handlers pending": "0xAC"
},
{
"type": "Switch",
"name": "WM10",
"device id": "0x11",
"product id": 71,
"version": "02.00",
"entities": 2,
"handlers received": "0x9C 0x1E",
"handlers pending": "0x9D"
},
{
"type": "Controller",
"name": "BC10/RFM20",
"device id": "0x09",
"product id": 68,
"version": "02.03",
"entities": 0
}
]
}

Additional context

Is there a possibility to restart the ems from within HA or NR? This way i could temporary fix the problem this way.

system log
Full system log attached
Bottom line of this system log gives extra info on the problem (time)16:33:31
log.txt
:

2022-11-23 16:33:17.227 D 60608: [emsesp] No telegram type handler found for ID 0x35 (src 0x18)
2022-11-23 16:33:17.700 D 60609: [emsesp] No telegram type handler found for ID 0x35 (src 0x10)
2022-11-23 16:33:18.082 D 60610: [mqtt] Publishing topic ems-esp/thermostat_data (#41354, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:18.183 D 60611: [mqtt] Publishing topic ems-esp/switch_data (#41355, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:19.092 D 60612: [mqtt] Publishing topic ems-esp/thermostat_data (#41356, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:19.193 D 60613: [mqtt] Publishing topic ems-esp/switch_data (#41357, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:20.102 D 60614: [mqtt] Publishing topic ems-esp/boiler_data_ww (#41358, retain=0, retry=1, size=484, pid=1)
2022-11-23 16:33:20.203 D 60615: [mqtt] Publishing topic ems-esp/boiler_data (#41359, retain=0, retry=1, size=794, pid=1)
2022-11-23 16:33:20.304 D 60616: [mqtt] Publishing topic ems-esp/thermostat_data (#41360, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:20.405 D 60617: [mqtt] Publishing topic ems-esp/mixer_data (#41361, retain=0, retry=1, size=117, pid=1)
2022-11-23 16:33:20.506 D 60618: [mqtt] Publishing topic ems-esp/switch_data (#41362, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:21.011 D 60619: [mqtt] Publishing topic ems-esp/thermostat_data (#41363, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:21.112 D 60620: [mqtt] Publishing topic ems-esp/switch_data (#41364, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:22.021 D 60621: [mqtt] Publishing topic ems-esp/thermostat_data (#41365, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:22.122 D 60622: [mqtt] Publishing topic ems-esp/switch_data (#41366, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:23.031 D 60623: [mqtt] Publishing topic ems-esp/thermostat_data (#41367, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:23.132 D 60624: [mqtt] Publishing topic ems-esp/switch_data (#41368, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:24.043 D 60625: [mqtt] Publishing topic ems-esp/thermostat_data (#41369, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:24.144 D 60626: [mqtt] Publishing topic ems-esp/switch_data (#41370, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:25.053 D 60627: [mqtt] Publishing topic ems-esp/thermostat_data (#41371, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:25.154 D 60628: [mqtt] Publishing topic ems-esp/switch_data (#41372, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:26.063 D 60629: [mqtt] Publishing topic ems-esp/thermostat_data (#41373, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:26.164 D 60630: [mqtt] Publishing topic ems-esp/switch_data (#41374, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:27.073 D 60631: [mqtt] Publishing topic ems-esp/thermostat_data (#41375, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:27.174 D 60632: [mqtt] Publishing topic ems-esp/switch_data (#41376, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:28.083 D 60633: [mqtt] Publishing topic ems-esp/thermostat_data (#41377, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:28.184 D 60634: [mqtt] Publishing topic ems-esp/switch_data (#41378, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:29.093 D 60635: [mqtt] Publishing topic ems-esp/thermostat_data (#41379, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:29.194 D 60636: [mqtt] Publishing topic ems-esp/switch_data (#41380, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:30.007 D 60637: [mqtt] Publishing topic ems-esp/boiler_data_ww (#41381, retain=0, retry=1, size=484, pid=1)
2022-11-23 16:33:30.108 D 60638: [mqtt] Publishing topic ems-esp/boiler_data (#41382, retain=0, retry=1, size=794, pid=1)
2022-11-23 16:33:30.209 D 60639: [mqtt] Publishing topic ems-esp/thermostat_data (#41383, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:30.310 D 60640: [mqtt] Publishing topic ems-esp/mixer_data (#41384, retain=0, retry=1, size=117, pid=1)
2022-11-23 16:33:30.411 D 60641: [mqtt] Publishing topic ems-esp/switch_data (#41385, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:31.017 D 60642: [mqtt] Publishing topic ems-esp/thermostat_data (#41386, retain=0, retry=1, size=1871, pid=1)
2022-11-23 16:33:31.118 D 60643: [mqtt] Publishing topic ems-esp/switch_data (#41387, retain=0, retry=1, size=30, pid=1)
2022-11-23 16:33:31.185 D 60644: [command] Calling command 'thermostat/mode' (mode) with value night
2022-11-23 16:33:31.185 E 60645: [emsesp] Write command failed callback function failed (Error)

@daad919 daad919 added the bug Something isn't working label Nov 23, 2022
@MichaelDvP
Copy link
Contributor

I've already tried the fix with sending 0 to boiler/selflowtemp every few seconds, but the system does not respond.
Heatingactivated is set to on, and i can't write to this command.

This is normal with BC10 controller, the boiler ignores the values. There is nothing we can do. It's the same with my GB125/MC10/BC10, bus protocol is ok, but value is unchanged.

You are using very, very short publish intervals, it could be memory related. Try to set all intervals to 10sec or longer. the data from bus normally are not faster than 10 sec, mixer publishes only every minute.

I'm supprised that the first mode command (D655) works (D660 to D662), the initialization of thermostat hasn't finished yet, the telegram is not registered. How often are you sending commands?

022-11-23 16:33:31.185 D 60644: [command] Calling command 'thermostat/mode' (mode) with value night
2022-11-23 16:33:31.185 E 60645: [emsesp] Write command failed callback function failed (Error)

If you try again, is it always the same result? What is shown for free heap /free block when this happends?

Is there a possibility to restart the ems from within HA or NR? This way i could temporary fix the problem this way.

Sure, command is: system/restart

@daad919
Copy link
Author

daad919 commented Nov 23, 2022

Heatingactivated is set to on, and i can't write to this command.
This is normal with BC10 controller, the boiler ignores the values. There is nothing we can do. It's the same with my GB125/MC10/BC10, bus protocol is ok, but value is unchanged.

Ok!

You are using very, very short publish intervals, it could be memory related. Try to set all intervals to 10sec or longer. the data from bus normally are not faster than 10 sec, mixer publishes only every minute.

They where at 1 sec, changed back to 10 sec!

I'm supprised that the first mode command (D655) works (D660 to D662), the initialization of thermostat hasn't finished yet, the telegram is not registered. How often are you sending commands?

Multiple times a day (20?30?)

022-11-23 16:33:31.185 D 60644: [command] Calling command 'thermostat/mode' (mode) with value night
2022-11-23 16:33:31.185 E 60645: [emsesp] Write command failed callback function failed (Error)
If you try again, is it always the same result? What is shown for free heap /free block when this happends?

What do you mean with free heap/free block?

Is there a possibility to restart the ems from within HA or NR? This way i could temporary fix the problem this way.

Sure, command is: system/restart

Will look into it to tackle the problem!

@MichaelDvP
Copy link
Contributor

What do you mean with free heap/free block?

Heap (Free/Max Alloc) from this page.
grafik

@daad919
Copy link
Author

daad919 commented Nov 23, 2022

Thanks, when it happens again i'll post the info.

@proddy proddy added help wanted Extra attention is needed and removed bug Something isn't working labels Nov 26, 2022
@emsesp emsesp locked and limited conversation to collaborators Feb 13, 2023
@proddy proddy converted this issue into a discussion Feb 13, 2023
@proddy proddy reopened this Feb 13, 2023
@proddy proddy converted this issue into a discussion Feb 13, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants