Closed teclab-at closed 7 months ago
can't reproduce. does the message have an access level associated with it?
Don't know what you mean with "access level". If I set the item to r1, then I also get it with the http method. So my assumption is, that http only retrieves from the cache, but does not query values from the modbus?
On http, you need to query with "required" parameter (and possibly "maxage") otherwise ebusd just answers from cache: https://github.com/john30/ebusd/wiki/3.2.-HTTP-client
did you pass the URL arg to curl as posted above?
as in this case the shell will run parts of it in background.
you'd have to wrap the URL in quotes like this: curl "http://ebusd/data/700/hwcstoragetemp?exact=true&maxage=0"
closed due to inactivity
Description
When sending a http request, the json data is retrieved without the value. ebusd 23.2.23.2
Actual behavior
Restart the service:
systemctl restart ebusd.service
HTTP Request:
curl http://ebusd/data/700/hwcstoragetemp?exact=true&maxage=0
Returns:Now do:
ebusctl read -c 700 HwcStorageTemp
Returns:53
Now HTTP returns correct value:
curl http://ebusd/data/700/hwcstoragetemp?exact=true&maxage=0
Expected behavior
The HTTP request should read the value from the bus. I tried several quey parameters without success.
ebusd version
23.2
ebusd arguments
EBUSD_OPTS="--scanconfig -d ens:modbus:9999 --httpport=80"
Operating system
Debian 12 (Bookworm) / Ubuntu 22-23 / Raspberry Pi OS 12 (including lite)
CPU architecture
x64
Dockerized
None
Hardware interface
adapter 3.1 Ethernet
Related integration
HTTP
Logs
2023-08-07 20:29:35.439 [main notice] ebusd 23.2.23.2 started with auto scan on device: modbus:9999, enhanced 2023-08-07 20:29:38.328 [bus notice] device status: resetting 2023-08-07 20:29:38.329 [bus notice] bus started with own address 31/36 2023-08-07 20:29:38.344 [bus notice] signal acquired 2023-08-07 20:29:39.090 [bus notice] device status: reset, supports info 2023-08-07 20:29:39.094 [bus notice] device status: extra info: firmware 1.1[8419].2[847f], jumpers 0x17 2023-08-07 20:29:42.221 [bus notice] new master 03, master count 2 2023-08-07 20:29:42.284 [update notice] received unknown MS cmd: 03e0b5210900002200e4ffff4600 / 0b0000ea00c3000700000600 2023-08-07 20:29:46.817 [bus notice] new master 10, master count 3 2023-08-07 20:29:46.880 [update notice] received unknown MS cmd: 1008b5110101 / 092c2ba00cff6a0000ff 2023-08-07 20:29:46.996 [bus notice] scan 08: ;Vaillant;HMU00;0308;0403 2023-08-07 20:29:46.996 [update notice] store 08 ident: done 2023-08-07 20:29:46.996 [update notice] sent scan-read scan.08 QQ=31: Vaillant;HMU00;0308;0403 2023-08-07 20:29:46.996 [bus notice] scan 08: ;Vaillant;HMU00;0308;0403 2023-08-07 20:29:47.223 [bus notice] new master 71, master count 4 2023-08-07 20:29:47.223 [update notice] received unknown MS cmd: 1076b5110101 / 09ff2ba00cff6a0000ff 2023-08-07 20:29:47.490 [update notice] received unknown MS cmd: 1076b512030f0001 / 0756030000801303 2023-08-07 20:29:47.720 [main notice] read common config file vaillant/broadcast.csv 2023-08-07 20:29:47.755 [update notice] received unknown MS cmd: 1008b51009000000ffffff070000 / 0101 2023-08-07 20:29:47.906 [main notice] read common config file vaillant/scan.csv 2023-08-07 20:29:48.023 [update notice] received unknown MS cmd: 1076b51009000000ffffff050000 / 0101 2023-08-07 20:29:48.093 [main notice] read common config file vaillant/general.csv 2023-08-07 20:29:48.283 [main notice] read scan config file vaillant/08.hmu.csv for ID "hmu00", SW0308, HW0403 2023-08-07 20:29:48.658 [main notice] found messages: 65 (0 conditional on 0 conditions, 0 poll, 10 update) 2023-08-07 20:29:48.829 [update notice] sent unknown MS cmd: 3108b5090124 / 09003231313731353030 2023-08-07 20:29:48.997 [update notice] sent scan-read scan.08 id QQ=31: 2023-08-07 20:29:49.164 [update notice] sent scan-read scan.08 id QQ=31: 2023-08-07 20:29:49.331 [update notice] sent scan-read scan.08 id QQ=31: 21;17;15;0010016422;0001;005417;N3 2023-08-07 20:29:49.331 [bus notice] scan 08: ;21;17;15;0010016422;0001;005417;N3 2023-08-07 20:29:51.561 [bus notice] scan 15: ;Vaillant;70000;0419;4603 2023-08-07 20:29:51.561 [update notice] store 15 ident: done 2023-08-07 20:29:51.561 [update notice] sent scan-read scan.15 QQ=31: Vaillant;70000;0419;4603 2023-08-07 20:29:51.561 [bus notice] scan 15: ;Vaillant;70000;0419;4603 2023-08-07 20:29:51.762 [update notice] sent unknown MS cmd: 3115b5090124 / 09003231313731373030 2023-08-07 20:29:51.967 [update notice] sent scan-read scan.15 id QQ=31: 2023-08-07 20:29:52.173 [update notice] sent scan-read scan.15 id QQ=31: 2023-08-07 20:29:52.377 [update notice] sent scan-read scan.15 id QQ=31: 21;17;17;0020218357;0082;027150;N1 2023-08-07 20:29:52.377 [bus notice] scan 15: ;21;17;17;0020218357;0082;027150;N1 2023-08-07 20:29:52.806 [main notice] read scan config file vaillant/15.700.csv for ID "70000", SW0419, HW4603 2023-08-07 20:29:52.993 [main notice] found messages: 505 (0 conditional on 0 conditions, 0 poll, 10 update) 2023-08-07 20:29:55.155 [bus notice] scan 76: ;Vaillant;VWZ00;0308;0403 2023-08-07 20:29:55.155 [update notice] store 76 ident: done 2023-08-07 20:29:55.155 [update notice] sent scan-read scan.76 QQ=31: Vaillant;VWZ00;0308;0403 2023-08-07 20:29:55.155 [bus notice] scan 76: ;Vaillant;VWZ00;0308;0403 2023-08-07 20:29:55.285 [update notice] sent unknown MS cmd: 3176b5090124 / 00 2023-08-07 20:29:55.417 [update notice] sent scan-read scan.76 id QQ=31: 2023-08-07 20:29:55.548 [update notice] sent scan-read scan.76 id QQ=31: 2023-08-07 20:29:55.680 [update error] unable to parse scan-read scan.76 id from 3176b5090127 / 00: ERR: invalid position 2023-08-07 20:29:55.681 [main error] scan config 76: ERR: invalid position 2023-08-07 20:29:56.893 [update notice] received read hmu Status01 QQ=10: 22.0;21.5;12.625;-;53.0;off 2023-08-07 20:29:57.160 [update notice] received unknown MS cmd: 1076b5110101 / 09ff2ba00cff6a0000ff 2023-08-07 20:29:57.426 [update notice] received unknown MS cmd: 1076b512030f0001 / 0756030000801303 2023-08-07 20:29:57.636 [update notice] received unknown BC cmd: 10feb505025c00 2023-08-07 20:29:57.833 [bus notice] scan e0: ;Vaillant;OMU00;0131;5202 2023-08-07 20:29:57.833 [update notice] store e0 ident: done 2023-08-07 20:29:57.833 [update notice] sent scan-read scan.e0 QQ=31: Vaillant;OMU00;0131;5202 2023-08-07 20:29:57.833 [bus notice] scan e0: ;Vaillant;OMU00;0131;5202 2023-08-07 20:29:57.977 [update notice] received update-write hmu SetMode QQ=10: auto;0.0;-;-;1;1;1;0;0;0 2023-08-07 20:29:58.024 [bus notice] max. symbols per second: 106 2023-08-07 20:29:58.142 [update notice] sent unknown MS cmd: 31e0b5090124 / 09003231313731373030 2023-08-07 20:29:58.311 [update notice] sent scan-read scan.e0 id QQ=31: 2023-08-07 20:29:58.411 [update notice] received unknown MS cmd: 1076b51009000000ffffff050000 / 0101 2023-08-07 20:29:58.534 [update notice] sent scan-read scan.e0 id QQ=31: 2023-08-07 20:29:58.706 [update notice] sent scan-read scan.e0 id QQ=31: 21;17;17;0010016715;0001;006077;N7 2023-08-07 20:29:58.706 [bus notice] scan e0: ;21;17;17;0010016715;0001;006077;N7 2023-08-07 20:29:58.851 [update notice] received read hmu DateTime QQ=10: valid;22:30:00;07.08.2023;12.625 2023-08-07 20:29:59.027 [bus notice] max. symbols per second: 134 2023-08-07 20:29:59.064 [main notice] read scan config file vaillant/e0.omu.csv for ID "omu00", SW0131, HW5202 2023-08-07 20:29:59.095 [update notice] received unknown MS cmd: 1008b507020900 / 028902 2023-08-07 20:29:59.331 [update notice] received update-read broadcast vdatetime QQ=10: 22:29:58;07.08.2023 2023-08-07 20:29:59.598 [update notice] received unknown MS cmd: 1008b5110100 / 09640114000000000100 2023-08-07 20:29:59.729 [main notice] found messages: 628 (49 conditional on 3 conditions, 0 poll, 10 update) 2023-08-07 20:29:59.845 [update notice] received unknown MS cmd: 1076b51303040d00 / 02ffff 2023-08-07 20:30:00.060 [update notice] received update-read broadcast outsidetemp QQ=10: 12.625 2023-08-07 20:30:00.291 [update notice] received update-write hmu StatusCirPump QQ=10: off 2023-08-07 20:30:00.526 [update notice] received unknown MS cmd: 1008b5120204ff / 0101 2023-08-07 20:30:00.761 [update notice] received unknown MS cmd: 1008b513020528 / 0101 2023-08-07 20:30:00.972 [update notice] received unknown BC cmd: 10feb510020601 2023-08-07 20:30:01.182 [update notice] received unknown BC cmd: 10feb508020900 2023-08-07 20:30:06.934 [update notice] received read hmu Status01 QQ=10: 22.0;21.5;12.625;-;53.0;off 2023-08-07 20:30:07.193 [update notice] received unknown MS cmd: 03e0b5210900002200e4ffff4600 / 0b0000ea00c5000700000600 2023-08-07 20:30:07.289 [update notice] received unknown MS cmd: 1076b5110101 / 09ff2ba00cff6a0000ff 2023-08-07 20:30:07.556 [update notice] received unknown MS cmd: 1076b512030f0001 / 0756030000801303 2023-08-07 20:30:07.822 [update notice] received update-write hmu SetMode QQ=10: auto;0.0;-;-;1;1;1;0;0;0 2023-08-07 20:30:08.089 [update notice] received unknown MS cmd: 1076b51009000000ffffff050000 / 0101 2023-08-07 20:30:11.728 [update error] unable to parse scan-read scan.76 id from 3176b5090124 / 00: ERR: invalid position 2023-08-07 20:30:11.859 [update error] unable to parse scan-read scan.76 id from 3176b5090125 / 00: ERR: invalid position 2023-08-07 20:30:11.991 [update error] unable to parse scan-read scan.76 id from 3176b5090126 / 00: ERR: invalid position 2023-08-07 20:30:12.123 [update error] unable to parse scan-read scan.76 id from 3176b5090127 / 00: ERR: invalid position 2023-08-07 20:30:12.123 [main error] scan config 76: ERR: invalid position 2023-08-07 20:30:16.979 [update notice] received read hmu Status01 QQ=10: 22.0;21.5;12.625;-;53.0;off 2023-08-07 20:30:17.245 [update notice] received unknown MS cmd: 1076b5110101 / 09ff2ba00cff6a0000ff 2023-08-07 20:30:17.512 [update notice] received unknown MS cmd: 1076b512030f0001 / 0756030000801303 2023-08-07 20:30:17.779 [update notice] received update-write hmu SetMode QQ=10: auto;0.0;-;-;1;1;1;0;0;0 2023-08-07 20:30:18.046 [update notice] received unknown MS cmd: 1076b51009000000ffffff050000 / 0101 2023-08-07 20:30:24.261 [update error] unable to parse scan-read scan.76 id from 3176b5090124 / 00: ERR: invalid position 2023-08-07 20:30:24.391 [update error] unable to parse scan-read scan.76 id from 3176b5090125 / 00: ERR: invalid position 2023-08-07 20:30:24.523 [update error] unable to parse scan-read scan.76 id from 3176b5090126 / 00: ERR: invalid position 2023-08-07 20:30:24.655 [update error] unable to parse scan-read scan.76 id from 3176b5090127 / 00: ERR: invalid position 2023-08-07 20:30:24.655 [main error] scan config 76: ERR: invalid position 2023-08-07 20:30:27.068 [update notice] received read hmu Status01 QQ=10: 22.0;21.5;12.625;-;53.0;off 2023-08-07 20:30:27.335 [update notice] received unknown MS cmd: 1076b5110101 / 09ff2ba00cff6a0000ff 2023-08-07 20:30:27.602 [update notice] received unknown MS cmd: 1076b512030f0001 / 0756030000801303 2023-08-07 20:30:27.868 [update notice] received update-write hmu SetMode QQ=10: auto;0.0;-;-;1;1;1;0;0;0 2023-08-07 20:30:28.135 [update notice] received unknown MS cmd: 1076b51009000000ffffff050000 / 0101 2023-08-07 20:30:32.122 [update notice] received unknown MS cmd: 03e0b5210900002200e4ffff4600 / 0b0000ea00c5000700000600 2023-08-07 20:30:36.799 [update error] unable to parse scan-read scan.76 id from 3176b5090124 / 00: ERR: invalid position 2023-08-07 20:30:36.931 [update error] unable to parse scan-read scan.76 id from 3176b5090125 / 00: ERR: invalid position 2023-08-07 20:30:37.063 [update error] unable to parse scan-read scan.76 id from 3176b5090126 / 00: ERR: invalid position 2023-08-07 20:30:37.160 [update notice] received read hmu Status01 QQ=10: 22.0;21.5;12.625;-;53.0;off 2023-08-07 20:30:37.246 [update error] unable to parse scan-read scan.76 id from 3176b5090127 / 00: ERR: invalid position 2023-08-07 20:30:37.246 [main error] scan config 76: ERR: invalid position 2023-08-07 20:30:37.474 [update notice] received unknown MS cmd: 1076b5110101 / 09ff2ba00cff6a0000ff 2023-08-07 20:30:37.741 [update notice] received unknown MS cmd: 1076b512030f0001 / 0756030000801303 2023-08-07 20:30:38.008 [update notice] received update-write hmu SetMode QQ=10: auto;0.0;-;-;1;1;1;0;0;0 2023-08-07 20:30:38.274 [update notice] received unknown MS cmd: 1076b51009000000ffffff050000 / 0101 2023-08-07 20:30:47.158 [update notice] received read hmu Status01 QQ=10: 22.0;21.5;12.625;-;53.0;off 2023-08-07 20:30:47.424 [update notice] received unknown MS cmd: 1076b5110101 / 09ff2ba00cff6a0000ff 2023-08-07 20:30:47.691 [update notice] received unknown MS cmd: 1076b512030f0001 / 0756030000801303 2023-08-07 20:30:47.957 [update notice] received update-write hmu SetMode QQ=10: auto;0.0;-;-;1;1;1;0;0;0 2023-08-07 20:30:48.224 [update notice] received unknown MS cmd: 1076b51009000000ffffff050000 / 0101 2023-08-07 20:30:49.380 [update error] unable to parse scan-read scan.76 id from 3176b5090124 / 00: ERR: invalid position 2023-08-07 20:30:49.512 [update error] unable to parse scan-read scan.76 id from 3176b5090125 / 00: ERR: invalid position 2023-08-07 20:30:49.644 [update error] unable to parse scan-read scan.76 id from 3176b5090126 / 00: ERR: invalid position 2023-08-07 20:30:49.778 [update error] unable to parse scan-read scan.76 id from 3176b5090127 / 00: ERR: invalid position 2023-08-07 20:30:49.779 [main error] scan config 76: ERR: invalid position 2023-08-07 20:30:57.028 [update notice] received unknown MS cmd: 03e0b5210900002200e4ffff4600 / 0b0000ea00c5000700000600 2023-08-07 20:30:57.207 [update notice] received read hmu Status01 QQ=10: 22.0;21.5;12.625;-;53.0;off 2023-08-07 20:30:57.473 [update notice] received unknown MS cmd: 1076b5110101 / 09ff2ba00cff6a0000ff 2023-08-07 20:30:57.740 [update notice] received unknown MS cmd: 1076b512030f0001 / 0756030000801303 2023-08-07 20:30:57.950 [update notice] received unknown BC cmd: 10feb505025c00 2023-08-07 20:30:58.218 [update notice] received update-write hmu SetMode QQ=10: auto;0.0;-;-;1;1;1;0;0;0 2023-08-07 20:30:58.485 [update notice] received unknown MS cmd: 1076b51009000000ffffff050000 / 0101 2023-08-07 20:30:58.754 [update notice] received read hmu DateTime QQ=10: valid;22:31:00;07.08.2023;12.625 2023-08-07 20:30:58.999 [update notice] received unknown MS cmd: 1008b507020900 / 028902 2023-08-07 20:30:59.235 [update notice] received update-read broadcast vdatetime QQ=10: 22:30:58;07.08.2023 2023-08-07 20:30:59.502 [update notice] received unknown MS cmd: 1008b5110100 / 09640114000000000100 2023-08-07 20:30:59.748 [update notice] received unknown MS cmd: 1076b51303040d00 / 02ffff 2023-08-07 20:30:59.962 [update notice] received update-read broadcast outsidetemp QQ=10: 12.625 2023-08-07 20:31:01.932 [update error] unable to parse scan-read scan.76 id from 3176b5090124 / 00: ERR: invalid position 2023-08-07 20:31:02.063 [update error] unable to parse scan-read scan.76 id from 3176b5090125 / 00: ERR: invalid position 2023-08-07 20:31:02.195 [update error] unable to parse scan-read scan.76 id from 3176b5090126 / 00: ERR: invalid position 2023-08-07 20:31:02.327 [update error] unable to parse scan-read scan.76 id from 3176b5090127 / 00: ERR: invalid position 2023-08-07 20:31:02.327 [main error] scan config 76: ERR: invalid position 2023-08-07 20:31:07.267 [update notice] received read hmu Status01 QQ=10: 22.0;21.5;12.625;-;53.0;off 2023-08-07 20:31:07.533 [update notice] received unknown MS cmd: 1076b5110101 / 09ff2ba00cff6a0000ff 2023-08-07 20:31:07.800 [update notice] received unknown MS cmd: 1076b512030f0001 / 0756030000801303 2023-08-07 20:31:08.067 [update notice] received update-write hmu SetMode QQ=10: auto;0.0;-;-;1;1;1;0;0;0 2023-08-07 20:31:08.334 [update notice] received unknown MS cmd: 1076b51009000000ffffff050000 / 0101 2023-08-07 20:31:14.460 [update error] unable to parse scan-read scan.76 id from 3176b5090124 / 00: ERR: invalid position 2023-08-07 20:31:14.596 [update error] unable to parse scan-read scan.76 id from 3176b5090125 / 00: ERR: invalid position 2023-08-07 20:31:14.728 [update error] unable to parse scan-read scan.76 id from 3176b5090126 / 00: ERR: invalid position 2023-08-07 20:31:14.859 [update error] unable to parse scan-read scan.76 id from 3176b5090127 / 00: ERR: invalid position 2023-08-07 20:31:14.859 [main error] scan config 76: ERR: invalid position 2023-08-07 20:31:17.356 [update notice] received read hmu Status01 QQ=10: 22.0;21.5;12.625;-;53.0;off 2023-08-07 20:31:17.623 [update notice] received unknown MS cmd: 1076b5110101 / 09ff2ba00cff6a0000ff 2023-08-07 20:31:17.890 [update notice] received unknown MS cmd: 1076b512030f0001 / 0756030000801303 2023-08-07 20:31:18.156 [update notice] received update-write hmu SetMode QQ=10: auto;0.0;-;-;1;1;1;0;0;0 2023-08-07 20:31:18.423 [update notice] received unknown MS cmd: 1076b51009000000ffffff050000 / 0101 2023-08-07 20:31:21.938 [update notice] received unknown MS cmd: 03e0b5210900002200e4ffff4600 / 0b0000ea00c5000700000600 2023-08-07 20:31:26.993 [update error] unable to parse scan-read scan.76 id from 3176b5090124 / 00: ERR: invalid position 2023-08-07 20:31:27.125 [update error] unable to parse scan-read scan.76 id from 3176b5090125 / 00: ERR: invalid position 2023-08-07 20:31:27.256 [update error] unable to parse scan-read scan.76 id from 3176b5090126 / 00: ERR: invalid position 2023-08-07 20:31:27.397 [update notice] received read hmu Status01 QQ=10: 22.0;21.5;12.625;-;53.0;off 2023-08-07 20:31:27.523 [update error] unable to parse scan-read scan.76 id from 3176b5090127 / 00: ERR: invalid position 2023-08-07 20:31:27.523 [main error] scan config 76: ERR: invalid position 2023-08-07 20:31:27.708 [update notice] received unknown MS cmd: 1076b5110101 / 09ff2ba00cff6a0000ff 2023-08-07 20:31:27.974 [update notice] received unknown MS cmd: 1076b512030f0001 / 0756030000801303 2023-08-07 20:31:28.241 [update notice] received update-write hmu SetMode QQ=10: auto;0.0;-;-;1;1;1;0;0;0 2023-08-07 20:31:28.508 [update notice] received unknown MS cmd: 1076b51009000000ffffff050000 / 0101 2023-08-07 20:31:36.698 [update error] unable to parse scan-read scan.76 id from 3176b5090124 / 00: ERR: invalid position 2023-08-07 20:31:36.830 [update error] unable to parse scan-read scan.76 id from 3176b5090125 / 00: ERR: invalid position 2023-08-07 20:31:36.961 [update error] unable to parse scan-read scan.76 id from 3176b5090126 / 00: ERR: invalid position 2023-08-07 20:31:37.093 [update error] unable to parse scan-read scan.76 id from 3176b5090127 / 00: ERR: invalid position 2023-08-07 20:31:37.093 [main error] scan config 76: ERR: invalid position 2023-08-07 20:31:37.449 [update notice] received read hmu Status01 QQ=10: 22.0;21.5;12.625;-;53.0;off 2023-08-07 20:31:37.716 [update notice] received unknown MS cmd: 1076b5110101 / 09ff2ba00cff6a0000ff 2023-08-07 20:31:37.983 [update notice] received unknown MS cmd: 1076b512030f0001 / 0756030000801303 2023-08-07 20:31:38.249 [update notice] received update-write hmu SetMode QQ=10: auto;0.0;-;-;1;1;1;0;0;0 2023-08-07 20:31:38.516 [update notice] received unknown MS cmd: 1076b51009000000ffffff050000 / 0101 2023-08-07 20:31:45.843 [update error] unable to parse scan-read scan.76 id from 3176b5090124 / 00: ERR: invalid position 2023-08-07 20:31:45.974 [update error] unable to parse scan-read scan.76 id from 3176b5090125 / 00: ERR: invalid position