Since upgrading to 8.13.7/9 my LCD 20x4 display turns on but no data

I appreciate everyone’s help in advance! I had my setup working great on version 8.12.9 and my LCD was working correctly. I tried deleting and rebuilding the function after upgrading to 8.13.7/9 several times. Wiring is is good. IC2 address is still the same. It powers up and has two rows of blocks like when you restart the Pi but that’s it.

Generic 20x4 LCD running IC2 along with two Atlas Scientific humidity and CO2 sensors IC2 on a Raspberry Pi 4 (sensors all working fine on IC2)

In the daemon log I see this error many times over:

ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up

1 Like

Have you enabled debug mode for the Function to diagnose the issue?

Yes, I have that enabled. Just not sure what to do from there.

Here is a copy of the last 100 lines on the daemon log.

2022-04-30 10:05:47,124 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:05:47,264 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: success: 99.03,22.92,Dew,22.76
2022-04-30 10:05:47,320 - DEBUG - mycodo.controllers.controller_input_b516edbe - Adding measurements to InfluxDB with ID b516edbe-4ee8-4fd4-a772-6bbb8ce1a89a: {0: {'measurement': None, 'unit': 'F', 'value': 73.256, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 5, 47, 264841)}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 99.03, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 5, 47, 264801)}, 2: {'measurement': None, 'unit': 'F', 'value': 72.968, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 5, 47, 264873)}}
2022-04-30 10:05:57,137 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:06:01,711 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 751
2022-04-30 10:06:01,718 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 751.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 6, 1, 711779)}}
2022-04-30 10:06:02,274 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: success: 96.45,22.90,Dew,22.30
2022-04-30 10:06:02,351 - DEBUG - mycodo.controllers.controller_input_b516edbe - Adding measurements to InfluxDB with ID b516edbe-4ee8-4fd4-a772-6bbb8ce1a89a: {0: {'measurement': None, 'unit': 'F', 'value': 73.22, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 6, 2, 275136)}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 96.45, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 6, 2, 275097)}, 2: {'measurement': None, 'unit': 'F', 'value': 72.14, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 6, 2, 275170)}}
2022-04-30 10:06:07,152 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:06:16,695 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 750
2022-04-30 10:06:16,702 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 750.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 6, 16, 695721)}}
2022-04-30 10:06:17,165 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:06:17,310 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: error: 129
2022-04-30 10:06:17,311 - ERROR - mycodo.inputs.atlas_humidity_b516edbe - Sensor read unsuccessful: 129
2022-04-30 10:06:27,179 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:06:31,762 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 752
2022-04-30 10:06:31,768 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 752.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 6, 31, 762841)}}
2022-04-30 10:06:32,343 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: error: 128
2022-04-30 10:06:32,344 - ERROR - mycodo.inputs.atlas_humidity_b516edbe - Sensor read unsuccessful: 128
2022-04-30 10:06:37,192 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:06:46,721 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 752
2022-04-30 10:06:46,727 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 752.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 6, 46, 722335)}}
2022-04-30 10:06:47,205 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:06:47,285 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: success: 100.47,22.94,Dew,23.02
2022-04-30 10:06:47,311 - DEBUG - mycodo.controllers.controller_input_b516edbe - Adding measurements to InfluxDB with ID b516edbe-4ee8-4fd4-a772-6bbb8ce1a89a: {0: {'measurement': None, 'unit': 'F', 'value': 73.292, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 6, 47, 286265)}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 100.47, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 6, 47, 286249)}, 2: {'measurement': None, 'unit': 'F', 'value': 73.436, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 6, 47, 286276)}}
2022-04-30 10:06:57,214 - DEBUG - mycodo.controllers.controller_pid_62111899 - Latest (CH1, Unit: percent): 100.47 @ 2022-04-30 10:06:47
2022-04-30 10:06:57,214 - DEBUG - mycodo.controllers.controller_pid_62111899 - PID: Input: 100.47, Output: P: 7.590000000000003, I: 25.0, D: -0.4799999999999969, Out: 32.11000000000001
2022-04-30 10:06:57,220 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:06:57,324 - DEBUG - mycodo.controllers.controller_pid_62111899 - Setpoint: 103.0 Output: 32.11000000000001 sec to output e7c234c9-18af-4259-9307-837896e34e3a CH5
2022-04-30 10:07:01,687 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 745
2022-04-30 10:07:01,694 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 745.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 1, 688247)}}
2022-04-30 10:07:02,262 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: success: 100.87,22.95,Dew,23.09
2022-04-30 10:07:02,323 - DEBUG - mycodo.controllers.controller_input_b516edbe - Adding measurements to InfluxDB with ID b516edbe-4ee8-4fd4-a772-6bbb8ce1a89a: {0: {'measurement': None, 'unit': 'F', 'value': 73.31, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 2, 263214)}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 100.87, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 2, 263174)}, 2: {'measurement': None, 'unit': 'F', 'value': 73.562, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 2, 263247)}}
2022-04-30 10:07:07,234 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:07:16,763 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 743
2022-04-30 10:07:16,770 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 743.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 16, 763948)}}
2022-04-30 10:07:17,247 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:07:17,283 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: success: 101.56,22.96,Dew,23.21
2022-04-30 10:07:17,338 - DEBUG - mycodo.controllers.controller_input_b516edbe - Adding measurements to InfluxDB with ID b516edbe-4ee8-4fd4-a772-6bbb8ce1a89a: {0: {'measurement': None, 'unit': 'F', 'value': 73.328, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 17, 283879)}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 101.56, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 17, 283839)}, 2: {'measurement': None, 'unit': 'F', 'value': 73.778, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 17, 283911)}}
2022-04-30 10:07:20,431 - DEBUG - mycodo.controllers.controller_pid_8b767b1a - Latest (CH0, Unit: ppm): 743.0 @ 2022-04-30 10:07:16
2022-04-30 10:07:20,432 - DEBUG - mycodo.controllers.controller_pid_8b767b1a - PID: Input: 743.0, Output: P: -43.0, I: -0.0, D: -0.0, Out: -43.0
2022-04-30 10:07:20,530 - DEBUG - mycodo.controllers.controller_pid_8b767b1a - Setpoint: 700.0 Output: -43.0 sec to output e7c234c9-18af-4259-9307-837896e34e3a CH0
2022-04-30 10:07:27,261 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:07:31,755 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 749
2022-04-30 10:07:31,762 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 749.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 31, 756418)}}
2022-04-30 10:07:32,302 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: success: 101.75,22.91,Dew,23.19
2022-04-30 10:07:32,364 - DEBUG - mycodo.controllers.controller_input_b516edbe - Adding measurements to InfluxDB with ID b516edbe-4ee8-4fd4-a772-6bbb8ce1a89a: {0: {'measurement': None, 'unit': 'F', 'value': 73.238, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 32, 303530)}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 101.75, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 32, 303489)}, 2: {'measurement': None, 'unit': 'F', 'value': 73.742, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 32, 303562)}}
2022-04-30 10:07:37,281 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:07:46,738 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 751
2022-04-30 10:07:46,745 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 751.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 46, 739033)}}
2022-04-30 10:07:47,295 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:07:47,336 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: success: 99.93,22.84,Dew,22.83
2022-04-30 10:07:47,372 - DEBUG - mycodo.controllers.controller_input_b516edbe - Adding measurements to InfluxDB with ID b516edbe-4ee8-4fd4-a772-6bbb8ce1a89a: {0: {'measurement': None, 'unit': 'F', 'value': 73.112, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 47, 337140)}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 99.93, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 47, 337116)}, 2: {'measurement': None, 'unit': 'F', 'value': 73.094, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 7, 47, 337158)}}
2022-04-30 10:07:57,308 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:08:01,706 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 750
2022-04-30 10:08:01,710 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 750.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 8, 1, 706634)}}
2022-04-30 10:08:02,323 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: error: 128
2022-04-30 10:08:02,324 - ERROR - mycodo.inputs.atlas_humidity_b516edbe - Sensor read unsuccessful: 128
2022-04-30 10:08:07,321 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:08:16,771 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 754
2022-04-30 10:08:16,778 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 754.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 8, 16, 772315)}}
2022-04-30 10:08:17,274 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: success: 98.51,22.85,Dew,22.61
2022-04-30 10:08:17,325 - DEBUG - mycodo.controllers.controller_input_b516edbe - Adding measurements to InfluxDB with ID b516edbe-4ee8-4fd4-a772-6bbb8ce1a89a: {0: {'measurement': None, 'unit': 'F', 'value': 73.13, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 8, 17, 274868)}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 98.51, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 8, 17, 274827)}, 2: {'measurement': None, 'unit': 'F', 'value': 72.698, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 8, 17, 274901)}}
2022-04-30 10:08:17,338 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:08:27,101 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:08:31,740 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 752
2022-04-30 10:08:31,747 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 752.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 8, 31, 741151)}}
2022-04-30 10:08:32,285 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: success: 99.87,22.86,Dew,22.84
2022-04-30 10:08:32,355 - DEBUG - mycodo.controllers.controller_input_b516edbe - Adding measurements to InfluxDB with ID b516edbe-4ee8-4fd4-a772-6bbb8ce1a89a: {0: {'measurement': None, 'unit': 'F', 'value': 73.148, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 8, 32, 286083)}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 99.87, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 8, 32, 286040)}, 2: {'measurement': None, 'unit': 'F', 'value': 73.112, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 8, 32, 286116)}}
2022-04-30 10:08:37,117 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:08:46,722 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 746
2022-04-30 10:08:46,729 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 746.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 8, 46, 722841)}}
2022-04-30 10:08:47,131 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:08:47,333 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: success: 100.45,22.86,Dew,22.94
2022-04-30 10:08:47,384 - DEBUG - mycodo.controllers.controller_input_b516edbe - Adding measurements to InfluxDB with ID b516edbe-4ee8-4fd4-a772-6bbb8ce1a89a: {0: {'measurement': None, 'unit': 'F', 'value': 73.148, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 8, 47, 333923)}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 100.45, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 8, 47, 333882)}, 2: {'measurement': None, 'unit': 'F', 'value': 73.292, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 8, 47, 333958)}}
2022-04-30 10:08:57,149 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:08:57,196 - DEBUG - mycodo.controllers.controller_pid_62111899 - Latest (CH1, Unit: percent): 100.45 @ 2022-04-30 10:08:47
2022-04-30 10:08:57,196 - DEBUG - mycodo.controllers.controller_pid_62111899 - PID: Input: 100.45, Output: P: 7.6499999999999915, I: 25.0, D: 0.00999999999999801, Out: 32.65999999999999
2022-04-30 10:08:57,293 - DEBUG - mycodo.controllers.controller_pid_62111899 - Setpoint: 103.0 Output: 32.65999999999999 sec to output e7c234c9-18af-4259-9307-837896e34e3a CH5
2022-04-30 10:09:01,696 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 749
2022-04-30 10:09:01,703 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 749.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 9, 1, 697177)}}
2022-04-30 10:09:02,345 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: success: 100.94,22.87,Dew,23.03
2022-04-30 10:09:02,399 - DEBUG - mycodo.controllers.controller_input_b516edbe - Adding measurements to InfluxDB with ID b516edbe-4ee8-4fd4-a772-6bbb8ce1a89a: {0: {'measurement': None, 'unit': 'F', 'value': 73.166, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 9, 2, 346305)}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 100.94, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 9, 2, 346265)}, 2: {'measurement': None, 'unit': 'F', 'value': 73.454, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 9, 2, 346340)}}
2022-04-30 10:09:07,172 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:09:16,764 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 743
2022-04-30 10:09:16,785 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 743.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 9, 16, 765122)}}
2022-04-30 10:09:17,186 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:09:17,350 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: success: 101.71,22.88,Dew,23.16
2022-04-30 10:09:17,392 - DEBUG - mycodo.controllers.controller_input_b516edbe - Adding measurements to InfluxDB with ID b516edbe-4ee8-4fd4-a772-6bbb8ce1a89a: {0: {'measurement': None, 'unit': 'F', 'value': 73.184, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 9, 17, 350964)}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 101.71, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 9, 17, 350940)}, 2: {'measurement': None, 'unit': 'F', 'value': 73.688, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 9, 17, 350982)}}
2022-04-30 10:09:20,481 - DEBUG - mycodo.controllers.controller_pid_8b767b1a - Latest (CH0, Unit: ppm): 743.0 @ 2022-04-30 10:09:16
2022-04-30 10:09:20,481 - DEBUG - mycodo.controllers.controller_pid_8b767b1a - PID: Input: 743.0, Output: P: -43.0, I: -0.0, D: 0.0, Out: -43.0
2022-04-30 10:09:20,566 - DEBUG - mycodo.controllers.controller_pid_8b767b1a - Setpoint: 700.0 Output: -43.0 sec to output e7c234c9-18af-4259-9307-837896e34e3a CH0
2022-04-30 10:09:27,199 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:09:31,741 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 742
2022-04-30 10:09:31,746 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 742.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 9, 31, 741577)}}
2022-04-30 10:09:32,353 - DEBUG - mycodo.inputs.atlas_humidity_b516edbe - Device Returned: success: 101.96,22.84,Dew,23.16
2022-04-30 10:09:32,416 - DEBUG - mycodo.controllers.controller_input_b516edbe - Adding measurements to InfluxDB with ID b516edbe-4ee8-4fd4-a772-6bbb8ce1a89a: {0: {'measurement': None, 'unit': 'F', 'value': 73.112, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 9, 32, 354124)}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 101.96, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 9, 32, 354085)}, 2: {'measurement': None, 'unit': 'F', 'value': 73.688, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 9, 32, 354155)}}
2022-04-30 10:09:37,212 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - LCD not set up
2022-04-30 10:09:46,707 - DEBUG - mycodo.inputs.atlas_co2_39378935 - Device Returned: success: 751
2022-04-30 10:09:46,715 - DEBUG - mycodo.controllers.controller_input_39378935 - Adding measurements to InfluxDB with ID 39378935-d44e-43c2-8649-2863612eacad: {0: {'measurement': 'co2', 'unit': 'ppm', 'value': 751.0, 'timestamp_utc': datetime.datetime(2022, 4, 30, 17, 9, 46, 708443)}}

I don’t see any long lines from the LCD that are different from what you initially provided, so that doesn’t provide any additional information.

The relevant log lines will be when the Function is first activated, as this is when the LCD would have failed to be “set up”.

Makes sense. I just deactivated and reactivated and now I see some info. Here you go. Kyle - Thank you brother, I really appreciate you taking the time to help me!

2022-04-30 17:34:43,825 - INFO - mycodo.controllers.controller_function_be33422f - Deactivated in 148.4 ms
2022-04-30 17:34:54,536 - ERROR - mycodo.function.display_generic_lcd_20x4_i2c_be33422f - Error initializing, trying again in 5 seconds: No module named 'smbus2'
Traceback (most recent call last):
  File "/var/mycodo-root/mycodo/abstract_base_controller.py", line 54, in try_initialize
    self.initialize()
  File "/home/FungiPi/Mycodo/mycodo/functions/display_generic_lcd_20x4_i2c.py", line 345, in initialize
    from mycodo.devices.lcd_generic import LCD_Generic
  File "/var/mycodo-root/mycodo/devices/lcd_generic.py", line 5, in <module>
    from smbus2 import SMBus
ModuleNotFoundError: No module named 'smbus2'

This issue was fixed 3 days ago:

Run the following command to fix the issue until a Mycodo release is made:

sudo ~/Mycodo/env/bin/pip install smbus2

FIXED! Thank you sir!

1 Like