Hi all,
… migrating my onewire sensors from an old wiregate installation to openhab. Trying to get a hold on things. So far so good, I was able to setup devices, discover sensors via Paper UI and access a specific element via owfs-number and a path.
Specifically these channel worked / are still working:
Type owfs-number : OW_All_Errors_CRC8 "CRC8 Errors" [ path="statistics/errors/CRC8_errors", refresh = 60 ]
Type owfs-number : ow_test "UG Schleuse Temp (via path)" [ path="28.3755CF040000/temperature12", refresh = 60 ]
Now, I’m trying to get a hold on the busmaster statistics. For this, I added several channels to the OW Bridge / Server (in the listing at the end):
Bridge onewire:owserver:sensix "Sensix 1Wire Bridge" @ "HWR" [ network-address="xxxx" ] {
/*
****************** Bus 0 --> Busmaster 81.AFA135000000, Number 4
****************** Devices
*/
Thing bms UG_Schleuse_MultiSensor "UG Schleuse BMS" @ "UG" [ id= "26.CAC687010000", refresh = 60, lightsensor = false, temperaturesensor="DS2438" ] {
Channels:
Type temperature-por-res : temperature [ ignorepor=false, resolution="11" ]
Type humidity : humidity [ ]
Type absolutehumidity : absolutehumidity [ ]
Type dewpoint : dewpoint [ ]
Type supplyvoltage : supplyvoltage [ ]
}
Thing basic UG_Schleuse_TempSensor "UG Schleuse Temp Sensor (on BMS)" @ "UG" [ id="28.3755CF040000", temperaturesensor="DS18B20", refresh = 60 ] {
Channels:
Type temperature-por-res : temperature [ ignorepor=false, resolution="12" ]
}
/*
****************** Bus 1 --> Busmaster 81.43D135000000, Number 1
****************** Devices
*/
// NO DEVICES
/************* OWServer sensix */
Channels:
/************* Overall */
Type owfs-number : OW_All_Errors_CRC8 "CRC8 Errors" [ path="statistics/errors/CRC8_errors", refresh = 60 ]
Type owfs-number : ow_test "UG Schleuse Temp (via path)" [ path="28.3755CF040000/temperature12", refresh = 60 ]
/************* Bus 0 */
Type owfs-number : OW_Bus0_Errors_General "General Errors" [ path="bus.0/bus.0/interface/statistics/errors", refresh = 60 ]
Type owfs-number : OW_Bus0_Errors_Reset "Reset Errors" [ path="bus.0/bus.0/interface/statistics/reset_errors", refresh = 60 ]
Type owfs-number : OW_Bus0_Errors_Read "Read Errors" [ path="bus.0/bus.0/interface/statistics/read_errors", refresh = 60 ]
Type owfs-number : OW_Bus0_Errors_Search1 "Search Errors (pass 1)" [ path="bus.0/bus.0/interface/statistics/search_errors/error_pass_1", refresh = 60 ]
Type owfs-number : OW_Bus0_Reconnects "Reconnects" [ path="bus.0/bus.0/interface/statistics/reconnects", refresh = 60 ]
Type owfs-number : OW_Bus0_BusTime "Bus Time" [ path="bus.0/bus.0/interface/statistics/bus_time", refresh = 60 ]
Type owfs-number : OW_Bus0_ElapsedTime "Elapsed Time" [ path="bus.0/bus.0/interface/statistics/elapsed_time", refresh = 60 ]
/************* Bus 1 */
Type owfs-number : OW_Bus1_Errors_General "General Errors" [ path="bus.0/bus.1/interface/statistics/errors", refresh = 60 ]
Type owfs-number : OW_Bus1_Errors_Reset "Reset Errors" [ path="bus.0/bus.1/interface/statistics/reset_errors", refresh = 60 ]
Type owfs-number : OW_Bus1_Errors_Read "Read Errors" [ path="bus.0/bus.1/interface/statistics/read_errors", refresh = 60 ]
Type owfs-number : OW_Bus1_Errors_Search1 "Search Errors (pass 1)" [ path="bus.0/bus.1/interface/statistics/search_errors/error_pass_1", refresh = 60 ]
Type owfs-number : OW_Bus1_Reconnects "Reconnects" [ path="bus.0/bus.1/interface/statistics/reconnects", refresh = 60 ]
Type owfs-number : OW_Bus1_BusTime "Bus Time" [ path="bus.0/bus.1/interface/statistics/bus_time", refresh = 60 ]
Type owfs-number : OW_Bus1_ElapsedTime "Elapsed Time" [ path="bus.0/bus.1/interface/statistics/elapsed_time", refresh = 60 ]
}
For the OW_Bus0* and OW_Bus1* channels, I get the following log output when logging at trace level:
2020-02-12 22:57:53.736 [TRACE] [internal.owserver.OwserverConnection] - owServerConnection already open, skipping input buffer
2020-02-12 22:57:53.737 [TRACE] [internal.owserver.OwserverConnection] - wrote: messageType READ, size 44, controlFlags 0x00000104, payload '/system/process/pid'
2020-02-12 22:57:53.739 [TRACE] [internal.owserver.OwserverConnection] - read: return code 12, size 36, controlFlags 0x00000104, payload ' 1567'
2020-02-12 22:57:53.741 [DEBUG] [internal.owserver.OwserverConnection] - read pid 1567 -> connection still alive
2020-02-12 22:57:53.742 [DEBUG] [internal.owserver.OwserverConnection] - failed requesting messageType READ, size 64, controlFlags 0x00000104, payload 'bus.0/bus.1/interface/statistics/errors'->return code -1, size 24, controlFlags 0x00000104, payload '' [I/O error: exception while reading packet - Read timed out]
2020-02-12 22:57:53.743 [DEBUG] [ternal.handler.OwserverBridgeHandler] - could not read direct channel onewire:owserver:sensix:OW_Bus1_Errors_General: I/O error: exception while reading packet - Read timed out
2020-02-12 22:57:53.747 [TRACE] [internal.owserver.OwserverConnection] - owServerConnection already open, skipping input buffer
2020-02-12 22:57:53.750 [TRACE] [internal.owserver.OwserverConnection] - wrote: messageType READ, size 70, controlFlags 0x00000104, payload 'bus.0/bus.1/interface/statistics/reset_errors'
2020-02-12 22:57:53.752 [TRACE] [internal.owserver.OwserverConnection] - read: return code -1, size 24, controlFlags 0x00000104, payload ''
2020-02-12 22:57:56.757 [TRACE] [internal.owserver.OwserverConnection] - owServerConnection already open, skipping input buffer
2020-02-12 22:57:56.759 [TRACE] [internal.owserver.OwserverConnection] - wrote: messageType READ, size 44, controlFlags 0x00000104, payload '/system/process/pid'
2020-02-12 22:57:56.760 [TRACE] [internal.owserver.OwserverConnection] - read: return code 12, size 36, controlFlags 0x00000104, payload ' 1567'
2020-02-12 22:57:56.761 [DEBUG] [internal.owserver.OwserverConnection] - read pid 1567 -> connection still alive
2020-02-12 22:57:56.762 [DEBUG] [internal.owserver.OwserverConnection] - failed requesting messageType READ, size 70, controlFlags 0x00000104, payload 'bus.0/bus.1/interface/statistics/reset_errors'->return code -1, size 24, controlFlags 0x00000104, payload '' [I/O error: exception while reading packet - Read timed out]
2020-02-12 22:57:56.763 [DEBUG] [ternal.handler.OwserverBridgeHandler] - could not read direct channel onewire:owserver:sensix:OW_Bus1_Errors_Reset: I/O error: exception while reading packet - Read timed out
2020-02-12 22:57:56.793 [TRACE] [internal.owserver.OwserverConnection] - owServerConnection already open, skipping input buffer
2020-02-12 22:57:56.795 [TRACE] [internal.owserver.OwserverConnection] - wrote: messageType READ, size 69, controlFlags 0x00000104, payload 'bus.0/bus.1/interface/statistics/read_errors'
2020-02-12 22:57:56.796 [TRACE] [internal.owserver.OwserverConnection] - read: return code -1, size 24, controlFlags 0x00000104, payload ''
2020-02-12 22:57:59.803 [TRACE] [internal.owserver.OwserverConnection] - owServerConnection already open, skipping input buffer
2020-02-12 22:57:59.805 [TRACE] [internal.owserver.OwserverConnection] - wrote: messageType READ, size 44, controlFlags 0x00000104, payload '/system/process/pid'
2020-02-12 22:57:59.806 [TRACE] [internal.owserver.OwserverConnection] - read: return code 12, size 36, controlFlags 0x00000104, payload ' 1567'
2020-02-12 22:57:59.807 [DEBUG] [internal.owserver.OwserverConnection] - read pid 1567 -> connection still alive
2020-02-12 22:57:59.808 [DEBUG] [internal.owserver.OwserverConnection] - failed requesting messageType READ, size 69, controlFlags 0x00000104, payload 'bus.0/bus.1/interface/statistics/read_errors'->return code -1, size 24, controlFlags 0x00000104, payload '' [I/O error: exception while reading packet - Read timed out]
2020-02-12 22:57:59.809 [DEBUG] [ternal.handler.OwserverBridgeHandler] - could not read direct channel onewire:owserver:sensix:OW_Bus1_Errors_Read: I/O error: exception while reading packet - Read timed out
2020-02-12 22:57:59.810 [TRACE] [internal.owserver.OwserverConnection] - owServerConnection already open, skipping input buffer
2020-02-12 22:57:59.811 [TRACE] [internal.owserver.OwserverConnection] - wrote: messageType READ, size 84, controlFlags 0x00000104, payload 'bus.0/bus.1/interface/statistics/search_errors/error_pass_1'
2020-02-12 22:57:59.892 [TRACE] [internal.owserver.OwserverConnection] - read: return code -1, size 24, controlFlags 0x00000104, payload ''
2020-02-12 22:58:02.896 [TRACE] [internal.owserver.OwserverConnection] - owServerConnection already open, skipping input buffer
2020-02-12 22:58:02.897 [TRACE] [internal.owserver.OwserverConnection] - wrote: messageType READ, size 44, controlFlags 0x00000104, payload '/system/process/pid'
2020-02-12 22:58:02.899 [TRACE] [internal.owserver.OwserverConnection] - read: return code 12, size 36, controlFlags 0x00000104, payload ' 1567'
2020-02-12 22:58:02.900 [DEBUG] [internal.owserver.OwserverConnection] - read pid 1567 -> connection still alive
2020-02-12 22:58:02.901 [DEBUG] [internal.owserver.OwserverConnection] - failed requesting messageType READ, size 84, controlFlags 0x00000104, payload 'bus.0/bus.1/interface/statistics/search_errors/error_pass_1'->return code -1, size 24, controlFlags 0x00000104, payload '' [I/O error: exception while reading packet - Read timed out]
2020-02-12 22:58:02.902 [DEBUG] [ternal.handler.OwserverBridgeHandler] - could not read direct channel onewire:owserver:sensix:OW_Bus1_Errors_Search1: I/O error: exception while reading packet - Read timed out
But when looking via owhttp, I see what I want to have:
Any hints???
Thanks!!!
Best Regards,
Alex