matze_de
(Matthias)
January 7, 2020, 4:01pm
22
I’ve successfully integrated Comofair 350 to OH 2.5. However, now I replaced Filter and want to reset the counter. Below is my Items configuration, I’ve set this to 1 through switch, but doesn’t work.
Number comfoairFilterReset “Filter reset” (ComfoAir) {comfoair=“filter_reset”}
Switch item=comfoairFilterReset mappings=[0=“Reset”
I also looked at the sample rule within Binding documentation at https://www.openhab.org/addons/bindings/comfoair1/ , but that didn’t work at all.
The rule errorReset ist triggerd by “Item comfoairReset changed”, but that never is used elsewhere.
Can someone post a working solution? @gieemek maybe you have an idea?
gieemek
(Grzegorz Miasko)
January 7, 2020, 9:18pm
23
Hi,
in item file:
Number comfoairFilterReset “Reset filters[%d]” <icon> (group) {comfoair=“filter_reset”}
in sitemap file:
Switch item=comfoairFilterReset mappings=[1=“RESET”]
value of filter_reset command should be 1 not 0.
Regards.
matze_de
(Matthias)
January 7, 2020, 11:50pm
24
Hi,
thank’s for your quick reply, tested both: setting filter_reset to 1 and 0.
That didn’t work, any other ideas?
Thanks
Matthias
binderth
(Thomas Binder)
January 8, 2020, 5:23pm
25
should work as intended:
Number Comfoair_Filterreset "Filter Reset [%d]" <switch> (gComfoair, UG_Technik) { comfoair="filter_reset" }
this is my item. If I set the “Comfoair_Filterreset” to 1, the reset is made. Could you set the binding log to TRACE and see what happens in the log?
gieemek
(Grzegorz Miasko)
January 10, 2020, 9:12pm
26
I’ve successfully integrated Comofair 350 to OH 2.5.
Do you have any other data from ComfoAir ? Are other items (command) work ?
If yes try to switch to debug mode in the Karaf console. What messages do you have when you set filter_reset to 1 ?
matze_de
(Matthias)
January 10, 2020, 11:43pm
27
Yes, i get data from Comfoair, like temperature fan level etc. and can successful switch between ventilaton Level. The CCeasy is not connected.
To switch filter_reset beetwen 0/1 for testing purposes I have follwing syntax:
Items:
Number comfoairFilterReset “Filter reset [%d]” (ComfoAir) {comfoair=“filter_reset”}
Sitemap:
Switch item=comfoairFilterReset mappings=[0=“Zero”, 1=“One”]
After setting to debug within Karaf console (log:set debug org.openhab.binding.comfoair) I’m getting following within openhab.log
2020-01-11 00:30:15.095 [DEBUG] [ng.comfoair.internal.ComfoAirBinding] - Unexpected value for DATA: 00 01 02 02 00 00 10 00 00 00
2020-01-11 00:31:00.012 [INFO ] [ipse.smarthome.model.script.comfoair] - ComfoAir - MANUAL Mode
2020-01-11 00:31:16.805 [DEBUG] [ng.comfoair.internal.ComfoAirBinding] - Unexpected value for DATA: 00 01 02 02 00 00 10 00 00 00
2020-01-11 00:32:00.009 [INFO ] [ipse.smarthome.model.script.comfoair] - ComfoAir - MANUAL Mode
2020-01-11 00:32:18.505 [DEBUG] [ng.comfoair.internal.ComfoAirBinding] - Unexpected value for DATA: 00 01 02 02 00 00 10 00 00 00
2020-01-11 00:33:00.013 [INFO ] [ipse.smarthome.model.script.comfoair] - ComfoAir - MANUAL Mode
2020-01-11 00:33:20.401 [DEBUG] [ng.comfoair.internal.ComfoAirBinding] - Unexpected value for DATA: 00 01 02 02 00 00 10 00 00 00
2020-01-11 00:34:00.012 [INFO ] [ipse.smarthome.model.script.comfoair] - ComfoAir - MANUAL Mode
2020-01-11 00:34:22.092 [DEBUG] [ng.comfoair.internal.ComfoAirBinding] - Unexpected value for DATA: 00 01 02 02 00 00 10 00 00 00
2020-01-11 00:35:00.007 [INFO ] [ipse.smarthome.model.script.comfoair] - ComfoAir - MANUAL Mode
2020-01-11 00:35:23.818 [DEBUG] [ng.comfoair.internal.ComfoAirBinding] - Unexpected value for DATA: 00 01 02 02 00 00 10 00 00 00
2020-01-11 00:36:00.013 [INFO ] [ipse.smarthome.model.script.comfoair] - ComfoAir - MANUAL Mode
2020-01-11 00:36:25.521 [DEBUG] [ng.comfoair.internal.ComfoAirBinding] - Unexpected value for DATA: 00 01 02 02 00 00 10 00 00 00
2020-01-11 00:37:00.014 [INFO ] [ipse.smarthome.model.script.comfoair] - ComfoAir - MANUAL Mode
2020-01-11 00:37:27.216 [DEBUG] [ng.comfoair.internal.ComfoAirBinding] - Unexpected value for DATA: 00 01 02 02 00 00 10 00 00 00
2020-01-11 00:38:00.013 [INFO ] [ipse.smarthome.model.script.comfoair] - ComfoAir - MANUAL Mode
2020-01-11 00:38:28.911 [DEBUG] [ng.comfoair.internal.ComfoAirBinding] - Unexpected value for DATA: 00 01 02 02 00 00 10 00 00 00
2020-01-11 00:39:00.015 [INFO ] [ipse.smarthome.model.script.comfoair] - ComfoAir - MANUAL Mode
2020-01-11 00:39:30.612 [DEBUG] [ng.comfoair.internal.ComfoAirBinding] - Unexpected value for DATA: 00 01 02 02 00 00 10 00 00 00
2020-01-11 00:40:00.013 [INFO ] [ipse.smarthome.model.script.comfoair] - ComfoAir - MANUAL Mode
2020-01-11 00:40:32.297 [DEBUG] [ng.comfoair.internal.ComfoAirBinding] - Unexpected value for DATA: 00 01 02 02 00 00 10 00 00 00
2020-01-11 00:41:00.010 [INFO ] [ipse.smarthome.model.script.comfoair] - ComfoAir - MANUAL Mode
2020-01-11 00:41:33.989 [DEBUG] [ng.comfoair.internal.ComfoAirBinding] - Unexpected value for DATA: 00 01 02 02 00 00 10 00 00 00
Afterwards I set logging level to debug, attached you’ll find some debug messeages.
Thanks for your help !
Matthiasdebug_messages.txt (20.2 KB)
binderth
(Thomas Binder)
January 11, 2020, 2:32pm
28
you have many “Unexpected Data”-entries… Do you have the CCEase running in parallel?
matze_de
(Matthias)
January 11, 2020, 10:02pm
29
Hi @binderth - no, CCEase is disconnected,
gieemek
(Grzegorz Miasko)
January 12, 2020, 12:25pm
30
Hi,
Indeed, your openhab sends a filter_reset command. It is this message:
2020-01-11 00:54:07.902 [TRACE] [.comfoair.handling.ComfoAirConnector] - send DATA: 07 f0 00 db 04 00 00 00 01 8d 07 0f
Everything is fine here.
However, later Comfoair still sends unresetted data:
2020-01-11 00:53:56.880 [TRACE] [.comfoair.handling.ComfoAirConnector] - receive RAW DATA: 07 f3 07 f0 00 de 14 00 de 95 00 49 43 00 27 21 07 07 13 00 1a 16 f4 3f ee 00 03 82 d6 07 0f
Also note the recurring errors:
2020-01-11 00:54:57.332 [DEBUG] [ng.comfoair.internal.ComfoAirBinding] - Unexpected value for DATA: 00 01 02 02 00 00 10 00 00 00
This is because the Comfoair returns an incorrect number of data bits related to the status request.
Please, confirm if you can read: bypass status, heater status, EWT status ?
Is your Comfoair certainly 350 ?
A similar error was reported to me by Comfoair 500, which has a slightly different data protocol.
If your Comfoair is 350, it looks like the data transfer protocol has changed
How old is your Comfoair 350 ?
gieemek
(Grzegorz Miasko)
January 12, 2020, 12:30pm
31
Only 1=“one” is necessary. 0=“zero” makes nothing.
gieemek
(Grzegorz Miasko)
January 12, 2020, 1:53pm
32
matze_de
(Matthias)
January 12, 2020, 6:51pm
34
Yes, I know. This is only for testing purposes, to set the value back to “0”.
gieemek
(Grzegorz Miasko)
January 12, 2020, 7:29pm
35
You don’t need to set this value to “0”, it’s done automticaly by Comfoair. If you set filter_reset to “0”, you change zero to zero.
binderth
(Thomas Binder)
January 16, 2020, 12:01pm
36
Did you get the reset working?
Just for you (no, I’m kidding, it was already 12 weeks), I changed my filters and did the reset (with TRACE set) and it worked:
2020-01-16 12:51:42.025 [ome.event.ItemCommandEvent] - Item 'Comfoair_Filterreset' received command 1
==> /var/log/openhab2/openhab.log <==
2020-01-16 12:51:42.029 [TRACE] [.comfoair.handling.ComfoAirConnector] - send DATA: 07 f0 00 db 04 00 00 00 01 8d 07 0f
2020-01-16 12:51:42.033 [TRACE] [.comfoair.handling.ComfoAirConnector] - send DATA: 07 f0 00 db 04 00 00 00 01 8d 07 0f
2020-01-16 12:51:45.237 [TRACE] [.comfoair.handling.ComfoAirConnector] - send DATA: 07 f0 00 37 07 07 00 00 00 00 00 00 00 eb 07 0f
2020-01-16 12:51:45.240 [TRACE] [.comfoair.handling.ComfoAirConnector] - send DATA: 07 f0 00 37 07 07 00 00 00 00 00 00 00 eb 07 0f
2020-01-16 12:51:45.446 [TRACE] [.comfoair.handling.ComfoAirConnector] - receive RAW DATA: 07 f3 07 f0 00 3c 0a 81 10 bf 3f 3f 06 00 00 00 e0 a7 07 0f
2020-01-16 12:51:45.449 [TRACE] [.comfoair.handling.ComfoAirConnector] - receive CMD: 3c DATA: 81 10 bf 3f 3f 06 00 00 00 e0
2020-01-16 12:51:45.451 [TRACE] [.comfoair.handling.ComfoAirConnector] - send DATA: 07 f3
2020-01-16 12:51:45.461 [TRACE] [.comfoair.handling.ComfoAirConnector] - send DATA: 07 f0 00 dd 00 8a 07 0f
2020-01-16 12:51:45.465 [TRACE] [.comfoair.handling.ComfoAirConnector] - send DATA: 07 f0 00 dd 00 8a 07 0f
2020-01-16 12:51:45.671 [TRACE] [.comfoair.handling.ComfoAirConnector] - receive RAW DATA: 07 f3 07 f0 00 de 14 00 04 71 00 cc 7e 00 04 1e 00 a1 00 00 47 eb 00 00 00 00 4b 9e 07 0f
2020-01-16 12:51:45.674 [TRACE] [.comfoair.handling.ComfoAirConnector] - receive CMD: de DATA: 00 04 71 00 cc 7e 00 04 1e 00 a1 00 00 47 eb 00 00 00 00 4b
2020-01-16 12:51:45.676 [TRACE] [.comfoair.handling.ComfoAirConnector] - send DATA: 07 f3
==> /var/log/openhab2/events.log <==
2020-01-16 12:51:45.688 [vent.ItemStateChangedEvent] - Comfoair_Filterlaufzeit changed from 2093 to 0
2020-01-16 12:51:45.711 [vent.ItemStateChangedEvent] - Comfoair_Filterlaufzeit_Message changed from 12 Wochen, 3 Tage to frisch gewechselt
gieemek
(Grzegorz Miasko)
January 17, 2020, 9:47pm
37
For me filter_reset command works too. I have used it for years.
Matthias, can you answer is your ComfoAir is really 350 and how old is it ?