I now have the correct I2C bus and default address of 1 relay hat of 0x27. The command seems to execute ok and returns green message box but appears that a variable “channel” is not defined according to the log? This is how the Channel naming in the setup view of the output looks:
Last 30 lines of /var/log/mycodo/mycodo.log:
2022-12-08 20:08:27,352 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH6 state change error: name ‘channel’ is not defined
2022-12-08 20:08:27,352 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH7 state change error: name ‘channel’ is not defined
2022-12-08 20:08:27,352 - INFO - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - Initialized in 303.5 ms
2022-12-08 20:08:33,635 - DEBUG - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - output_on_off(on, 0, sec, 0.0, 0.0, True)
2022-12-08 20:08:33,635 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH0 state change error: name ‘channel’ is not defined
2022-12-08 20:08:33,635 - DEBUG - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - Output 26807ca1-760d-4909-aac9-e547545159c3 CH0 (Relays) ON at 2022-12-08 20:08:33.635556. Output returned: CH0 state change error: name ‘channel’ is not defined
2022-12-08 20:08:45,293 - DEBUG - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - output_on_off(off, 0, None, 0.0, 0.0, True)
2022-12-08 20:08:45,294 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH0 state change error: name ‘channel’ is not defined
2022-12-08 20:08:45,294 - DEBUG - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - Output 26807ca1-760d-4909-aac9-e547545159c3 CH0 (Relays) OFF at 2022-12-08 20:08:45. Output returned: CH0 state change error: name ‘channel’ is not defined
2022-12-08 20:10:18,833 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH0 state change error: name ‘channel’ is not defined
2022-12-08 20:10:18,834 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH1 state change error: name ‘channel’ is not defined
2022-12-08 20:10:18,834 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH2 state change error: name ‘channel’ is not defined
2022-12-08 20:10:18,834 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH3 state change error: name ‘channel’ is not defined
2022-12-08 20:10:18,835 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH4 state change error: name ‘channel’ is not defined
2022-12-08 20:10:18,835 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH5 state change error: name ‘channel’ is not defined
2022-12-08 20:10:18,835 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH6 state change error: name ‘channel’ is not defined
2022-12-08 20:10:18,835 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH7 state change error: name ‘channel’ is not defined
2022-12-08 20:10:19,144 - DEBUG - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - I2C: Address: 0x27, Bus: 1
2022-12-08 20:10:19,146 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH0 state change error: name ‘channel’ is not defined
2022-12-08 20:10:19,146 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH1 state change error: name ‘channel’ is not defined
2022-12-08 20:10:19,147 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH2 state change error: name ‘channel’ is not defined
2022-12-08 20:10:19,147 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH3 state change error: name ‘channel’ is not defined
2022-12-08 20:10:19,147 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH4 state change error: name ‘channel’ is not defined
2022-12-08 20:10:19,147 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH5 state change error: name ‘channel’ is not defined
2022-12-08 20:10:19,147 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH6 state change error: name ‘channel’ is not defined
2022-12-08 20:10:19,147 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH7 state change error: name ‘channel’ is not defined
2022-12-08 20:10:19,147 - INFO - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - Initialized in 310.2 ms
2022-12-08 20:10:40,982 - DEBUG - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - output_on_off(on, 1, sec, 0.0, 0.0, True)
2022-12-08 20:10:40,983 - ERROR - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - CH1 state change error: name ‘channel’ is not defined
2022-12-08 20:10:40,983 - DEBUG - mycodo.outputs.on_off_sequent_8_relay_hat_26807ca1 - Output 26807ca1-760d-49