Conditional message ignored if slave-address unfilled
Description
If conditional message does not have slave-address filled in. It is silently ignored. I am able to reproduce this with following minimal file 3c.csv
# type (r[1-9];w;u),circuit,name,[comment],[QQ],ZZ,PBSB,[ID],field1,part (m/s),datatypes/templates,divider/values,unit,comment
*[fanmodetwo],TEST_DEVICE,FanMode,,,,2
r,TEST_DEVICE,FanMode,FanMode,,,4022,01,,,UIR,0=Holiday;1=Reduced;2=Normal;3=High;4=Auto,,
[fanmodetwo]r,TEST_DEVICE,InletFlow,ActualInletFlow,,3c,4022,0b,,,UIR,,,
If the message InletFlow does not have the address 3c filled in, it is completely skipped. If I fill it in, it is correctly polled for and published to MQTT.
Actual behavior
Conditional message ignored.
Expected behavior
Conditional message used and polled for.
ebusd version
23.2
ebusd arguments
ebusd --foreground --mqtthost=core-mosquitto --mqttport=1883 --mqttuser=addons --mqttpass=Rae9ooYeekaigi9OoPhoodahCheel7aequaidiis1oocee8iw5ieG3maingietho --scanconfig --mqttjson --mqttlog --configpath=/config/ebusd-configuration/latest/en --mqttint=/config/ebusd/contrib/etc/ebusd/mqtt-hassio.cfg --mqtttopic=ebusd --device=ens:192.168.100.60:9999 --log=all:debug --log=bus:notice
Operating system
other
CPU architecture
arm64
Dockerized
other
Hardware interface
Adapter Shield v5 via WiFi
Related integration
MQTT Home Assistant via mqtt-hassio.cfg
Logs
Logs when 3c not part of message definition:
2024-03-25 22:25:41.805 [update info] sent MS cmd: 313c070400 / 0a400812002203ffffffff
2024-03-25 22:25:41.807 [bus notice] scan 3c: ;ENCON; ;-;-
2024-03-25 22:25:41.807 [update notice] store 3c ident: done
2024-03-25 22:25:41.807 [update notice] sent scan-read scan.3c QQ=31: ENCON; ;-;-
2024-03-25 22:25:41.807 [bus notice] scan 3c: ;ENCON; ;-;-
2024-03-25 22:25:41.807 [main debug] reading directory /config/ebusd-configuration/latest/en/encon/
2024-03-25 22:25:41.809 [main debug] file type of /config/ebusd-configuration/latest/en/encon/3c.csv is file
2024-03-25 22:25:41.809 [main debug] file type of /config/ebusd-configuration/latest/en/encon/scan.csv is file
2024-03-25 22:25:41.809 [main debug] file type of /config/ebusd-configuration/latest/en/encon/Sky300.inc is file
2024-03-25 22:25:41.809 [main debug] found 1 matching scan config files from encon with prefix 3c: done
2024-03-25 22:25:41.809 [main debug] reading directory /config/ebusd-configuration/latest/en/encon/
2024-03-25 22:25:41.809 [main debug] file type of /config/ebusd-configuration/latest/en/encon/3c.csv is file
2024-03-25 22:25:41.809 [main debug] file type of /config/ebusd-configuration/latest/en/encon/scan.csv is file
2024-03-25 22:25:41.809 [main debug] file type of /config/ebusd-configuration/latest/en/encon/Sky300.inc is file
2024-03-25 22:25:41.836 [main notice] read common config file encon/scan.csv
2024-03-25 22:25:41.842 [main notice] read scan config file encon/3c.csv for ID "", SW65535, HW65535
2024-03-25 22:25:41.843 [main notice] found messages: 16 (1 conditional on 1 conditions, 1 poll, 4 update)
2024-03-25 22:25:41.843 [main info] scan config 3c message received
2024-03-25 22:25:42.105 [update info] sent MS cmd: 313c40220101 / 020002
2024-03-25 22:25:42.105 [update notice] sent poll-read TEST_DEVICE.3c FanMode QQ=31: Normal
2024-03-25 22:25:43.544 [mqtt debug] publish ebusd/scan.3c/ {
"MF": {"value": "ENCON"},
"ID": {"value": " "},
"SW": {"value": null},
"HW": {"value": null}}
2024-03-25 22:25:43.843 [main debug] performing regular tasks
2024-03-25 22:25:43.843 [mqtt debug] publish ebusd/global/scan "finished"
2024-03-25 22:25:43.844 [mqtt debug] publish ebusd/TEST_DEVICE.3c/FanMode {
"0": {"name": "", "value": "Normal"}}
2024-03-25 22:25:44.195 [update info] received MS cmd: 1f3c070400 / 0a400812002203ffffffff
2024-03-25 22:25:44.195 [update notice] received scan-read scan.3c QQ=1f: ENCON; ;-;-
2024-03-25 22:25:44.815 [update info] received MS cmd: 1f3c40220101 / 020002
2024-03-25 22:25:44.815 [update notice] received poll-read TEST_DEVICE.3c FanMode QQ=1f: Normal
2024-03-25 22:25:45.849 [mqtt debug] publish ebusd/global/uptime 16
2024-03-25 22:25:45.850 [mqtt debug] publish homeassistant/binary_sensor/ebusd_global_running/config {
"unique_id":"ebusd_global_running",
"device":{
"identifiers":"ebusd",
"manufacturer":"ebusd.eu",
"name":"ebusd",
"sw_version":"23.2",
"suggested_area":"Heating"
},
"state_topic":"ebusd/global/running",
"name":"global running",
"device_class":"running",
"payload_on":"true",
"payload_off":"false"
}
2024-03-25 22:25:45.851 [mqtt debug] publish homeassistant/binary_sensor/ebusd_global_signal/config {
"unique_id":"ebusd_global_signal",
"device":{
"identifiers":"ebusd",
"manufacturer":"ebusd.eu",
"name":"ebusd",
"sw_version":"23.2",
"suggested_area":"Heating"
},
"state_topic":"ebusd/global/signal",
"name":"global signal",
"device_class":"connectivity",
"payload_on":"true",
"payload_off":"false"
}
2024-03-25 22:25:45.852 [mqtt debug] publish homeassistant/sensor/ebusd_global_uptime/config {
"unique_id":"ebusd_global_uptime",
"device":{
"identifiers":"ebusd",
"manufacturer":"ebusd.eu",
"name":"ebusd",
"sw_version":"23.2",
"suggested_area":"Heating"
},
"state_topic":"ebusd/global/uptime",
"name":"global uptime",
"device_class":"duration",
"state_class":"total_increasing",
"unit_of_measurement":"s"
}
2024-03-25 22:25:45.853 [mqtt debug] publish homeassistant/update/ebusd_global_updatecheck/config {
"unique_id":"ebusd_global_updatecheck",
"device":{
"identifiers":"ebusd",
"manufacturer":"ebusd.eu",
"name":"ebusd",
"sw_version":"23.2",
"suggested_area":"Heating"
},
"state_topic":"ebusd/global/updatecheck",
"name":"global updatecheck",
"value_template":"{% set my_new = value_json|truncate(255)|regex_replace(find=',.*| available|revision v|version v|OK',replace='') %}{% if my_new == '' %}{% set my_new = '23.2' %}{% endif %}{{ {'installed_version':'23.2','latest_version':my_new,'entity_picture':'https://ebusd.eu/logo-32x32.png','release_url':'https://github.com/john30/ebusd/releases/latest'} | tojson }}"
}
2024-03-25 22:25:45.854 [mqtt debug] publish homeassistant/update/ebusd_global_updatecheck_device/config {
"unique_id":"ebusd_global_updatecheck_device",
"device":{
"identifiers":"ebusd_device",
"manufacturer":"ebusd.eu",
"name":"ebusd eBUS device",
"via_device":"ebusd",
"suggested_area":"Heating"
},
"state_topic":"ebusd/global/updatecheck",
"name":"updatecheck_device",
"value_template":"{% set my_new = value_json|truncate(255)|regex_replace(find='^[^,]*|, device firmware |,.*| available',replace='') %}{% set my_cur = 'old' %}{% if my_new == '' %}{% set my_new = 'current' %}{% set my_cur = 'current' %}{% endif %}{{ {'installed_version':my_cur,'latest_version':my_new,'entity_picture':'https://adapter.ebusd.eu/favicon.ico','release_url':'https://adapter.ebusd.eu/firmware/ChangeLog'} | tojson }}"
}
2024-03-25 22:25:45.854 [mqtt debug] publish homeassistant/sensor/ebusd_global_scan/config {
"unique_id":"ebusd_global_scan",
"device":{
"identifiers":"ebusd",
"manufacturer":"ebusd.eu",
"name":"ebusd",
"sw_version":"23.2",
"suggested_area":"Heating"
},
"state_topic":"ebusd/global/scan",
"name":"global scan"
}
2024-03-25 22:25:45.857 [mqtt debug] publish homeassistant/sensor/ebusd_TEST_DEVICE_3c_FanMode_0/config {
"unique_id":"ebusd_TEST_DEVICE_3c_FanMode_0",
"name":"FanMode ",
"device":{
"identifiers":"ebusd_TEST_DEVICE_3c",
"manufacturer":"ebusd.eu",
"name":"ebusd TEST_DEVICE.3c",
"via_device":"ebusd",
"sw_version":"23.2",
"suggested_area":"Heating"
},
"value_template":"{{value_json[\"0\"].value}}",
"state_topic":"ebusd/TEST_DEVICE.3c/FanMode",
"device_class":"enum",
"options":["Holiday","Reduced","Normal","High","Auto"]
}
2024-03-25 22:25:45.857 [mqtt debug] publish ebusd/global/signal true
2024-03-25 22:25:45.857 [mqtt debug] publish ebusd/TEST_DEVICE.3c/FanMode {
"0": {"name": "", "value": "Normal"}}
2024-03-25 22:25:48.922 [mqtt debug] publish ebusd/scan.3c/ {
"MF": {"value": "ENCON"},
"ID": {"value": " "},
"SW": {"value": null},
"HW": {"value": null}}
2024-03-25 22:25:48.922 [mqtt debug] publish ebusd/TEST_DEVICE.3c/FanMode {
"0": {"name": "", "value": "Normal"}}
2024-03-25 22:25:50.043 [update info] received MS cmd: 1f3c40220101 / 020002
2024-03-25 22:25:50.043 [update notice] received poll-read TEST_DEVICE.3c FanMode QQ=1f: Normal
2024-03-25 22:25:53.844 [main debug] performing regular tasks
2024-03-25 22:25:53.931 [mqtt debug] publish ebusd/TEST_DEVICE.3c/FanMode {
"0": {"name": "", "value": "Normal"}}
Logs when 3c is part of message definition:
2024-03-25 22:29:05.220 [update info] received MS cmd: 1f3c070400 / 0a400812002203ffffffff
2024-03-25 22:29:05.221 [update notice] received scan-read scan.3c QQ=1f: ENCON; ;-;-
2024-03-25 22:29:06.186 [update info] received MS cmd: 1f3c40220101 / 020002
2024-03-25 22:29:06.186 [update notice] received poll-read TEST_DEVICE.3c FanMode QQ=1f: Normal
2024-03-25 22:29:27.836 [main notice] ebusd 23.2.p20230716 started with auto scan on device: 192.168.100.60:9999, enhanced
2024-03-25 22:29:27.837 [main info] loading configuration files from /config/ebusd-configuration/latest/en/
2024-03-25 22:29:27.837 [main debug] reading directory /config/ebusd-configuration/latest/en/
2024-03-25 22:29:27.837 [main debug] file type of /config/ebusd-configuration/latest/en/encon is dir
2024-03-25 22:29:27.837 [main debug] file type of /config/ebusd-configuration/latest/en/memory.csv is file
2024-03-25 22:29:27.837 [main debug] file type of /config/ebusd-configuration/latest/en/broadcast.csv is file
2024-03-25 22:29:27.837 [main debug] file type of /config/ebusd-configuration/latest/en/vaillant is dir
2024-03-25 22:29:27.837 [main debug] file type of /config/ebusd-configuration/latest/en/_templates.csv is file
2024-03-25 22:29:27.837 [main info] reading templates /
2024-03-25 22:29:27.840 [main info] read templates in /
2024-03-25 22:29:27.840 [main info] reading file memory.csv
2024-03-25 22:29:27.844 [main info] successfully read file memory.csv
2024-03-25 22:29:27.844 [main info] reading file broadcast.csv
2024-03-25 22:29:27.851 [main info] successfully read file broadcast.csv
2024-03-25 22:29:27.851 [main info] read config files, got 11 messages
2024-03-25 22:29:27.879 [bus notice] device status: resetting
2024-03-25 22:29:27.879 [bus notice] bus started with own address 31/36
2024-03-25 22:29:27.879 [main info] registering data handlers
2024-03-25 22:29:27.879 [mqtt info] mosquitto version 2.0.18 (compiled with 2.0.15)
2024-03-25 22:29:27.906 [bus notice] signal acquired
2024-03-25 22:29:28.117 [mqtt debug] connection requested
2024-03-25 22:29:28.117 [main info] registered data handlers
2024-03-25 22:29:28.188 [bus notice] device status: reset, supports info
2024-03-25 22:29:28.292 [bus notice] device status: extra info: firmware 1.1[4106].1[4106], jumpers 0x0f
2024-03-25 22:29:28.676 [bus notice] new master 1f, master count 2
2024-03-25 22:29:28.684 [mqtt notice] connection established
2024-03-25 22:29:28.684 [mqtt debug] publish ebusd/global/version "ebusd 23.2.p20230716"
2024-03-25 22:29:28.685 [mqtt debug] publish ebusd/global/running true
2024-03-25 22:29:28.738 [bus notice] new master 37, master count 3
2024-03-25 22:29:28.738 [update info] received MS cmd: 1f3c070400 / 0a400812002203ffffffff
2024-03-25 22:29:28.738 [bus notice] scan 3c: ;ENCON; ;-;-
2024-03-25 22:29:28.739 [update notice] store 3c ident: done
2024-03-25 22:29:28.739 [update notice] received scan-read scan.3c QQ=1f: ENCON; ;-;-
2024-03-25 22:29:31.211 [update info] received MS cmd: 1f3c40220101 / 020002
2024-03-25 22:29:31.212 [update notice] received unknown MS cmd: 1f3c40220101 / 020002
2024-03-25 22:29:33.737 [mqtt debug] publish ebusd/scan.3c/ {
"MF": {"value": "ENCON"},
"ID": {"value": " "},
"SW": {"value": null},
"HW": {"value": null}}
2024-03-25 22:29:36.196 [update info] received MS cmd: 1f3c40220101 / 020002
2024-03-25 22:29:36.196 [update notice] received unknown MS cmd: 1f3c40220101 / 020002
2024-03-25 22:29:38.119 [main debug] performing regular tasks
2024-03-25 22:29:38.339 [main error] scan config 24: ERR: read timeout
2024-03-25 22:29:38.339 [mqtt debug] publish ebusd/global/scan "running"
2024-03-25 22:29:40.340 [main debug] performing regular tasks
2024-03-25 22:29:40.340 [main debug] reading directory /config/ebusd-configuration/latest/en/encon/
2024-03-25 22:29:40.340 [main debug] file type of /config/ebusd-configuration/latest/en/encon/3c.csv is file
2024-03-25 22:29:40.340 [main debug] file type of /config/ebusd-configuration/latest/en/encon/scan.csv is file
2024-03-25 22:29:40.340 [main debug] file type of /config/ebusd-configuration/latest/en/encon/Sky300.inc is file
2024-03-25 22:29:40.340 [main debug] found 1 matching scan config files from encon with prefix 3c: done
2024-03-25 22:29:40.340 [main debug] reading directory /config/ebusd-configuration/latest/en/encon/
2024-03-25 22:29:40.340 [main debug] file type of /config/ebusd-configuration/latest/en/encon/3c.csv is file
2024-03-25 22:29:40.340 [main debug] file type of /config/ebusd-configuration/latest/en/encon/scan.csv is file
2024-03-25 22:29:40.340 [main debug] file type of /config/ebusd-configuration/latest/en/encon/Sky300.inc is file
2024-03-25 22:29:40.353 [main notice] read common config file encon/scan.csv
2024-03-25 22:29:40.363 [main notice] read scan config file encon/3c.csv for ID "", SW65535, HW65535
2024-03-25 22:29:40.363 [main notice] found messages: 16 (1 conditional on 1 conditions, 1 poll, 4 update)
2024-03-25 22:29:40.364 [main info] scan config 3c message received
2024-03-25 22:29:40.616 [update info] sent MS cmd: 313c40220101 / 020002
2024-03-25 22:29:40.617 [update notice] sent poll-read TEST_DEVICE.3c FanMode QQ=31: Normal
2024-03-25 22:29:41.198 [update info] received MS cmd: 1f3c40220101 / 020002
2024-03-25 22:29:41.198 [update notice] received poll-read TEST_DEVICE.3c FanMode QQ=1f: Normal
2024-03-25 22:29:42.364 [main debug] performing regular tasks
2024-03-25 22:29:42.364 [mqtt debug] publish ebusd/global/scan "finished"
2024-03-25 22:29:42.373 [mqtt debug] publish ebusd/TEST_DEVICE.3c/FanMode {
"0": {"name": "", "value": "Normal"}}
2024-03-25 22:29:44.375 [mqtt debug] publish ebusd/global/uptime 16
2024-03-25 22:29:44.376 [mqtt debug] publish homeassistant/binary_sensor/ebusd_global_running/config {
"unique_id":"ebusd_global_running",
"device":{
"identifiers":"ebusd",
"manufacturer":"ebusd.eu",
"name":"ebusd",
"sw_version":"23.2",
"suggested_area":"Heating"
},
"state_topic":"ebusd/global/running",
"name":"global running",
"device_class":"running",
"payload_on":"true",
"payload_off":"false"
}
2024-03-25 22:29:44.377 [mqtt debug] publish homeassistant/binary_sensor/ebusd_global_signal/config {
"unique_id":"ebusd_global_signal",
"device":{
"identifiers":"ebusd",
"manufacturer":"ebusd.eu",
"name":"ebusd",
"sw_version":"23.2",
"suggested_area":"Heating"
},
"state_topic":"ebusd/global/signal",
"name":"global signal",
"device_class":"connectivity",
"payload_on":"true",
"payload_off":"false"
}
2024-03-25 22:29:44.378 [mqtt debug] publish homeassistant/sensor/ebusd_global_uptime/config {
"unique_id":"ebusd_global_uptime",
"device":{
"identifiers":"ebusd",
"manufacturer":"ebusd.eu",
"name":"ebusd",
"sw_version":"23.2",
"suggested_area":"Heating"
},
"state_topic":"ebusd/global/uptime",
"name":"global uptime",
"device_class":"duration",
"state_class":"total_increasing",
"unit_of_measurement":"s"
}
2024-03-25 22:29:44.379 [mqtt debug] publish homeassistant/update/ebusd_global_updatecheck/config {
"unique_id":"ebusd_global_updatecheck",
"device":{
"identifiers":"ebusd",
"manufacturer":"ebusd.eu",
"name":"ebusd",
"sw_version":"23.2",
"suggested_area":"Heating"
},
"state_topic":"ebusd/global/updatecheck",
"name":"global updatecheck",
"value_template":"{% set my_new = value_json|truncate(255)|regex_replace(find=',.*| available|revision v|version v|OK',replace='') %}{% if my_new == '' %}{% set my_new = '23.2' %}{% endif %}{{ {'installed_version':'23.2','latest_version':my_new,'entity_picture':'https://ebusd.eu/logo-32x32.png','release_url':'https://github.com/john30/ebusd/releases/latest'} | tojson }}"
}
2024-03-25 22:29:44.380 [mqtt debug] publish homeassistant/update/ebusd_global_updatecheck_device/config {
"unique_id":"ebusd_global_updatecheck_device",
"device":{
"identifiers":"ebusd_device",
"manufacturer":"ebusd.eu",
"name":"ebusd eBUS device",
"via_device":"ebusd",
"suggested_area":"Heating"
},
"state_topic":"ebusd/global/updatecheck",
"name":"updatecheck_device",
"value_template":"{% set my_new = value_json|truncate(255)|regex_replace(find='^[^,]*|, device firmware |,.*| available',replace='') %}{% set my_cur = 'old' %}{% if my_new == '' %}{% set my_new = 'current' %}{% set my_cur = 'current' %}{% endif %}{{ {'installed_version':my_cur,'latest_version':my_new,'entity_picture':'https://adapter.ebusd.eu/favicon.ico','release_url':'https://adapter.ebusd.eu/firmware/ChangeLog'} | tojson }}"
}
2024-03-25 22:29:44.380 [mqtt debug] publish homeassistant/sensor/ebusd_global_scan/config {
"unique_id":"ebusd_global_scan",
"device":{
"identifiers":"ebusd",
"manufacturer":"ebusd.eu",
"name":"ebusd",
"sw_version":"23.2",
"suggested_area":"Heating"
},
"state_topic":"ebusd/global/scan",
"name":"global scan"
}
2024-03-25 22:29:44.382 [mqtt debug] publish homeassistant/sensor/ebusd_TEST_DEVICE_InletFlow_0/config {
"unique_id":"ebusd_TEST_DEVICE_InletFlow_0",
"name":"InletFlow ",
"device":{
"identifiers":"ebusd_TEST_DEVICE",
"manufacturer":"ebusd.eu",
"name":"ebusd TEST_DEVICE",
"via_device":"ebusd",
"sw_version":"23.2",
"suggested_area":"Heating"
},
"value_template":"{{value_json[\"0\"].value}}",
"state_topic":"ebusd/TEST_DEVICE/InletFlow"
}
2024-03-25 22:29:44.385 [mqtt debug] publish homeassistant/sensor/ebusd_TEST_DEVICE_3c_FanMode_0/config {
"unique_id":"ebusd_TEST_DEVICE_3c_FanMode_0",
"name":"FanMode ",
"device":{
"identifiers":"ebusd_TEST_DEVICE_3c",
"manufacturer":"ebusd.eu",
"name":"ebusd TEST_DEVICE.3c",
"via_device":"ebusd",
"sw_version":"23.2",
"suggested_area":"Heating"
},
"value_template":"{{value_json[\"0\"].value}}",
"state_topic":"ebusd/TEST_DEVICE.3c/FanMode",
"device_class":"enum",
"options":["Holiday","Reduced","Normal","High","Auto"]
}
2024-03-25 22:29:44.385 [mqtt debug] publish ebusd/global/signal true
2024-03-25 22:29:44.386 [mqtt debug] publish ebusd/TEST_DEVICE.3c/FanMode {
"0": {"name": "", "value": "Normal"}}
2024-03-25 22:29:45.576 [update info] received MS cmd: 1f3c40cb0401010002 / 020002
2024-03-25 22:29:45.577 [update notice] received unknown MS cmd: 1f3c40cb0401010002 / 020002
2024-03-25 22:29:45.707 [update info] received MS cmd: 1f3c40ca0101 / 06000200552000
2024-03-25 22:29:45.707 [update notice] received unknown MS cmd: 1f3c40ca0101 / 06000200552000
2024-03-25 22:29:46.296 [update info] sent MS cmd: 313c4022010b / 020051
2024-03-25 22:29:46.296 [update notice] sent poll-read TEST_DEVICE InletFlow QQ=31: 81