SHT31 Smart Gadget Input error: object has no attribute ‘lock_file’

Hi, was wondering if anyone could give me a hand to get this input working. I have added the MAC address but it is not taking any readings.

I think it may be due to this field, I am not sure what to enter here can anyone advise me how to find out what this value should be?:

image

This is the log after I activate the input. I paired it to the pi and connected no problems.

2022-11-01 17:49:14,781 - INFO - mycodo.controllers.controller_input_7fb216ce - Activated in 10208.4 ms
2022-11-01 17:49:14,782 - ERROR - mycodo.inputs.sht31_smart_gadget_7fb216ce - InputModule raised an exception when taking a reading: ‘InputModule’ object has no attribute ‘lock_file’
2022-11-01 17:49:19,800 - ERROR - mycodo.inputs.sht31_smart_gadget_7fb216ce - InputModule raised an exception when taking a reading: ‘InputModule’ object has no attribute ‘lock_file’
2022-11-01 17:49:34,743 - ERROR - mycodo.inputs.sht31_smart_gadget_7fb216ce - InputModule raised an exception when taking a reading: ‘InputModule’ object has no attribute ‘lock_file’
2022-11-01 17:49:34,744 - ERROR - mycodo.controllers.controller_input_7fb216ce - StopIteration raised 3 times. Possibly could not read input. Ensure it’s connected properly and detected.
2022-11-01 17:49:49,787 - ERROR - mycodo.inputs.sht31_smart_gadget_7fb216ce - InputModule raised an exception when taking a reading: ‘InputModule’ object has no attribute ‘lock_file’

Thanks :slight_smile:

1 Like

This appears to be a bug. Thanks for bringing it to my attention. I just committed a change that may fix your issue.

If you would like to test the code prior to release, you can upgrade to master.

1 Like

Thanks a lot. Upgraded to master and it is working now.

1 Like