[add-on] HassOS I2C Configurator

Hi, first thanks for all this work!
I’m starting with HA. I want to control I2C numerical potentiomèter.
I have do all steps and logs says all is good. But i don t know how to discover new I2C device in HA and how control them.
Thanks for this work.

I press Start after installing the addon and in the logs I only see:

s6-overlay-suexec: fatal: can only run as pid 1

What can I do?

Went with the official way, which worked perfectly:

Hi.
Same problem here.

It was working all. But after migration to ssd it failed and get error.

Cooling fan addon error . Could not find I2C Port, you must enable …etc etc . Okay no problem, enable again with the I2C config addon.

Go to addon: Hasio I2C config Addon
log error:
s6-overlay-suexec: fatal: can only run as pid 1

When I put in my old SD with HAssio. Then I2C is enabled and Fan Addon is working.
Put Back SSD with Same Backup. I2C is not found / need to enable.

Put in Boot Partition CONFIG → modules the needed txt file. en put the 2 needed lines in config.txt.

Hard Reboot 2x times (pull the plug). Put still I2C is not enabled. I can see that in SSH ls /dev. And I2C is not present.

Why This manual setup does not work? What I do Wrong?

I’m having the same issues as some other folks here: Argon1 with a SATA drive and I can no longer get i2c running. I can get the module running via modprobe, but the add-on dones’t set up i2c. It tells me it will be ready on the next boot but i2c doesn’t start up.

I got it working with the Argon One booting from a 1TB SATA SSD now by adding those three lines to /mnt/boot/config.txt

dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=i2c1=on

No need for extra loading the module via /mnt/boot/CONFIG/modules/rpi-i2c.conf. Also it did not work adding those three lines to /mnt/boot/CONFIG/config.txt. I explicitly had to add them to the main config.txt

Settings initialized. Argon One Detected. Beginning monitor..
2022-06-22_19:34:46: 53C - Level 1 - Fan 0% (OFF)

@adamoutler1 thanks for the great add-on and your work! I highly appreciate it! :metal:

Finally, FINALLY got my i2c working. It looks like there’s an issue with boot sequence. I have USB stick with /CONFIG/ for dhcp setup, but having the rpi-i2c.config file in CONFIG/modules wasn’t working. lsmod wouldn’t show the i2c_dev module

Once I moved the rpi-i2c.config file to the modules-load.d directory then i2c worked on the next boot

I can not install it. When I add Repository there is no option to install.

1 Like

Sometimes it takes a bit. The only restrictions are that you have a raspberry pi. It wont’ work with any of the X86 raspberry pi clones.

@Sylwester try a cmd+r/ctrl+r after adding the repository (I had this).
if not there
Settings > add-ons > add-on store
scroll down it is below “official add-ons” but above “Home assistant community add-ons”

Thank you. After restart I was able to install it. All good. Working. Cheers.

Hello I have installed everything rebooted several times and I have these results

crw--w----    1 root     tty         4,  37 Jun  2 20:09 tty37
crw--w----    1 root     tty         4,  38 Jun  2 20:09 tty38
crw--w----    1 root     tty         4,  39 Jun  2 20:09 tty39
crw--w----    1 root     tty         4,   4 Jun  2 20:09 tty4
crw--w----    1 root     tty         4,  40 Jun  2 20:09 tty40
crw--w----    1 root     tty         4,  41 Jun  2 20:09 tty41
crw--w----    1 root     tty         4,  42 Jun  2 20:09 tty42
crw--w----    1 root     tty         4,  43 Jun  2 20:09 tty43
crw--w----    1 root     tty         4,  44 Jun  2 20:09 tty44
crw--w----    1 root     tty         4,  45 Jun  2 20:09 tty45
crw--w----    1 root     tty         4,  46 Jun  2 20:09 tty46
crw--w----    1 root     tty         4,  47 Jun  2 20:09 tty47
crw--w----    1 root     tty         4,  48 Jun  2 20:09 tty48
crw--w----    1 root     tty         4,  49 Jun  2 20:09 tty49
crw--w----    1 root     tty         4,   5 Jun  2 20:09 tty5
crw--w----    1 root     tty         4,  50 Jun  2 20:09 tty50
crw--w----    1 root     tty         4,  51 Jun  2 20:09 tty51
crw--w----    1 root     tty         4,  52 Jun  2 20:09 tty52
crw--w----    1 root     tty         4,  53 Jun  2 20:09 tty53
crw--w----    1 root     tty         4,  54 Jun  2 20:09 tty54
crw--w----    1 root     tty         4,  55 Jun  2 20:09 tty55
crw--w----    1 root     tty         4,  56 Jun  2 20:09 tty56
crw--w----    1 root     tty         4,  57 Jun  2 20:09 tty57
crw--w----    1 root     tty         4,  58 Jun  2 20:09 tty58
crw--w----    1 root     tty         4,  59 Jun  2 20:09 tty59
crw--w----    1 root     tty         4,   6 Jun  2 20:09 tty6
crw--w----    1 root     tty         4,  60 Jun  2 20:09 tty60
crw--w----    1 root     tty         4,  61 Jun  2 20:09 tty61
crw--w----    1 root     tty         4,  62 Jun  2 20:09 tty62
crw--w----    1 root     tty         4,  63 Jun  2 20:09 tty63
crw--w----    1 root     tty         4,   7 Jun  2 20:09 tty7
crw--w----    1 root     tty         4,   8 Jun  2 20:09 tty8
crw--w----    1 root     tty         4,   9 Jun  2 20:09 tty9
crw-rw----    1 root     audio     204,  64 Jun  2 20:09 ttyAMA0
crw-------    1 root     root        5,   3 Jun  2 20:09 ttyprintk
crw-------    1 root     root       10, 239 Jun  2 20:09 uhid
crw-------    1 root     root       10, 223 Jun  2 20:09 uinput
crw-rw-rw-    1 root     root        1,   9 Jun  2 20:09 urandom
drwxr-xr-x    2 root     root            60 Jun  2 20:09 usb
drwxr-xr-x    3 root     root            60 Jun  2 20:09 v4l
crw-------    1 root     root      245,   0 Jun  2 20:09 vc-mem
crw-------    1 root     root      239,   0 Jun  2 20:09 vchiq
crw-------    1 root     root       10, 125 Jun  2 20:09 vcio
crw-rw----    1 root     tty         7,   0 Jun  2 20:09 vcs
crw-rw----    1 root     tty         7,   1 Jun  2 20:09 vcs1
crw-rw----    1 root     tty         7,   2 Jun  2 20:09 vcs2
crw-rw----    1 root     tty         7,   3 Jun  2 20:09 vcs3
crw-rw----    1 root     tty         7,   4 Jun  2 20:09 vcs4
crw-rw----    1 root     tty         7,   5 Jun  2 20:09 vcs5
crw-rw----    1 root     tty         7,   6 Jun  2 20:09 vcs6
crw-rw----    1 root     tty         7, 128 Jun  2 20:09 vcsa
crw-rw----    1 root     tty         7, 129 Jun  2 20:09 vcsa1
crw-rw----    1 root     tty         7, 130 Jun  2 20:09 vcsa2
crw-rw----    1 root     tty         7, 131 Jun  2 20:09 vcsa3
crw-rw----    1 root     tty         7, 132 Jun  2 20:09 vcsa4
crw-rw----    1 root     tty         7, 133 Jun  2 20:09 vcsa5
crw-rw----    1 root     tty         7, 134 Jun  2 20:09 vcsa6
crw-rw-rw-    1 root     root       10, 122 Jun  2 20:09 vcsm-cma
crw-rw----    1 root     tty         7,  64 Jun  2 20:09 vcsu
crw-rw----    1 root     tty         7,  65 Jun  2 20:09 vcsu1
crw-rw----    1 root     tty         7,  66 Jun  2 20:09 vcsu2
crw-rw----    1 root     tty         7,  67 Jun  2 20:09 vcsu3
crw-rw----    1 root     tty         7,  68 Jun  2 20:09 vcsu4
crw-rw----    1 root     tty         7,  69 Jun  2 20:09 vcsu5
crw-rw----    1 root     tty         7,  70 Jun  2 20:09 vcsu6
crw-------    1 root     root       10, 127 Jun  2 20:09 vga_arbiter
crw-------    1 root     root       10, 137 Jun  2 20:09 vhci
crw-rw-rw-    1 root     111        10, 238 Jun  2 20:09 vhost-net
crw-rw-rw-    1 root     111        10, 241 Jun  2 20:09 vhost-vsock
crw-rw----    1 root     netdev     81,   5 Jun  2 20:09 video10
crw-rw----    1 root     netdev     81,   6 Jun  2 20:09 video11
crw-rw----    1 root     netdev     81,   7 Jun  2 20:09 video12
crw-rw----    1 root     netdev     81,   1 Jun  2 20:09 video13
crw-rw----    1 root     netdev     81,   2 Jun  2 20:09 video14
crw-rw----    1 root     netdev     81,   3 Jun  2 20:09 video15
crw-rw----    1 root     netdev     81,   4 Jun  2 20:09 video16
crw-rw----    1 root     netdev     81,   8 Jun  2 20:09 video18
crw-rw----    1 root     netdev     81,   0 Jun  2 20:09 video19
crw-rw----    1 root     netdev     81,   9 Jun  2 20:09 video20
crw-rw----    1 root     netdev     81,  11 Jun  2 20:09 video21
crw-rw----    1 root     netdev     81,  12 Jun  2 20:09 video22
crw-rw----    1 root     netdev     81,  13 Jun  2 20:09 video23
crw-rw----    1 root     netdev     81,  10 Jun  2 20:09 video31
crw-------    1 root     root       10, 130 Jun  2 20:09 watchdog
crw-------    1 root     root      247,   0 Jun  2 20:09 watchdog0
crw-rw-rw-    1 root     root        1,   5 Jun  2 20:09 zero
brw-rw----    1 root     disk      254,   0 Jun  2 20:09 zram0
brw-rw----    1 root     disk      254,   1 Jun  2 20:09 zram1
brw-rw----    1 root     disk      254,   2 Jun  2 20:09 zram2
ls: /dev/i2c-1: No such file or directory
I don't see I2C.
no sda1 available
no sdb1 available
dtparam=i2c_vc=on
i2c already configured on mmcblk0p1. Reboot required.
dtparam=i2c_arm=on
i2c already configured on mmcblk0p1. This addon was already run during this boot and no reboot occurred. 
This Configurator did it's job. Perform a hard-power-off reboot now.
You will need to reboot twice total, once to place the files, and again to activate the I2C.

Hello,

I have the same problem, Pi 4b + Argone One M.2
I want to use fan control but the i2c is not working … :frowning:

crw--w----    1 root     tty         4,  36 Jun  2 20:09 tty36
crw--w----    1 root     tty         4,  37 Jun  2 20:09 tty37
crw--w----    1 root     tty         4,  38 Jun  2 20:09 tty38
crw--w----    1 root     tty         4,  39 Jun  2 20:09 tty39
crw--w----    1 root     tty         4,   4 Jun  2 20:09 tty4
crw--w----    1 root     tty         4,  40 Jun  2 20:09 tty40
crw--w----    1 root     tty         4,  41 Jun  2 20:09 tty41
crw--w----    1 root     tty         4,  42 Jun  2 20:09 tty42
crw--w----    1 root     tty         4,  43 Jun  2 20:09 tty43
crw--w----    1 root     tty         4,  44 Jun  2 20:09 tty44
crw--w----    1 root     tty         4,  45 Jun  2 20:09 tty45
crw--w----    1 root     tty         4,  46 Jun  2 20:09 tty46
crw--w----    1 root     tty         4,  47 Jun  2 20:09 tty47
crw--w----    1 root     tty         4,  48 Jun  2 20:09 tty48
crw--w----    1 root     tty         4,  49 Jun  2 20:09 tty49
crw--w----    1 root     tty         4,   5 Jun  2 20:09 tty5
crw--w----    1 root     tty         4,  50 Jun  2 20:09 tty50
crw--w----    1 root     tty         4,  51 Jun  2 20:09 tty51
crw--w----    1 root     tty         4,  52 Jun  2 20:09 tty52
crw--w----    1 root     tty         4,  53 Jun  2 20:09 tty53
crw--w----    1 root     tty         4,  54 Jun  2 20:09 tty54
crw--w----    1 root     tty         4,  55 Jun  2 20:09 tty55
crw--w----    1 root     tty         4,  56 Jun  2 20:09 tty56
crw--w----    1 root     tty         4,  57 Jun  2 20:09 tty57
crw--w----    1 root     tty         4,  58 Jun  2 20:09 tty58
crw--w----    1 root     tty         4,  59 Jun  2 20:09 tty59
crw--w----    1 root     tty         4,   6 Jun  2 20:09 tty6
crw--w----    1 root     tty         4,  60 Jun  2 20:09 tty60
crw--w----    1 root     tty         4,  61 Jun  2 20:09 tty61
crw--w----    1 root     tty         4,  62 Jun  2 20:09 tty62
crw--w----    1 root     tty         4,  63 Jun  2 20:09 tty63
crw--w----    1 root     tty         4,   7 Jun  2 20:09 tty7
crw--w----    1 root     tty         4,   8 Jun  2 20:09 tty8
crw--w----    1 root     tty         4,   9 Jun  2 20:09 tty9
crw-rw----    1 root     audio     204,  64 Jun  2 20:09 ttyAMA0
crw-------    1 root     root        5,   3 Jun  2 20:09 ttyprintk
crw-------    1 root     root       10, 239 Jun  2 20:09 uhid
crw-------    1 root     root       10, 223 Jun  2 20:09 uinput
crw-rw-rw-    1 root     root        1,   9 Jun  2 20:09 urandom
drwxr-xr-x    3 root     root            60 Jun  2 20:09 v4l
crw-------    1 root     root      245,   0 Jun  2 20:09 vc-mem
crw-------    1 root     root      239,   0 Jun  2 20:09 vchiq
crw-------    1 root     root       10, 125 Jun  2 20:09 vcio
crw-rw----    1 root     tty         7,   0 Jun  2 20:09 vcs
crw-rw----    1 root     tty         7,   1 Jun  2 20:09 vcs1
crw-rw----    1 root     tty         7,   2 Jun  2 20:09 vcs2
crw-rw----    1 root     tty         7,   3 Jun  2 20:09 vcs3
crw-rw----    1 root     tty         7,   4 Jun  2 20:09 vcs4
crw-rw----    1 root     tty         7,   5 Jun  2 20:09 vcs5
crw-rw----    1 root     tty         7,   6 Jun  2 20:09 vcs6
crw-rw----    1 root     tty         7, 128 Jun  2 20:09 vcsa
crw-rw----    1 root     tty         7, 129 Jun  2 20:09 vcsa1
crw-rw----    1 root     tty         7, 130 Jun  2 20:09 vcsa2
crw-rw----    1 root     tty         7, 131 Jun  2 20:09 vcsa3
crw-rw----    1 root     tty         7, 132 Jun  2 20:09 vcsa4
crw-rw----    1 root     tty         7, 133 Jun  2 20:09 vcsa5
crw-rw----    1 root     tty         7, 134 Jun  2 20:09 vcsa6
crw-rw-rw-    1 root     root       10, 122 Jun  2 20:09 vcsm-cma
crw-rw----    1 root     tty         7,  64 Jun  2 20:09 vcsu
crw-rw----    1 root     tty         7,  65 Jun  2 20:09 vcsu1
crw-rw----    1 root     tty         7,  66 Jun  2 20:09 vcsu2
crw-rw----    1 root     tty         7,  67 Jun  2 20:09 vcsu3
crw-rw----    1 root     tty         7,  68 Jun  2 20:09 vcsu4
crw-rw----    1 root     tty         7,  69 Jun  2 20:09 vcsu5
crw-rw----    1 root     tty         7,  70 Jun  2 20:09 vcsu6
crw-------    1 root     root       10, 127 Jun  2 20:09 vga_arbiter
crw-------    1 root     root       10, 137 Jun  2 20:09 vhci
crw-rw-rw-    1 root     111        10, 238 Jun  2 20:09 vhost-net
crw-rw-rw-    1 root     111        10, 241 Jun  2 20:09 vhost-vsock
crw-rw----    1 root     netdev     81,   1 Jun  2 20:09 video10
crw-rw----    1 root     netdev     81,   2 Jun  2 20:09 video11
crw-rw----    1 root     netdev     81,   3 Jun  2 20:09 video12
crw-rw----    1 root     netdev     81,   4 Jun  2 20:09 video13
ls: /dev/i2c-1: No such file or directory
crw-rw----    1 root     netdev     81,   6 Jun  2 20:09 video14
crw-rw----    1 root     netdev     81,   7 Jun  2 20:09 video15
crw-rw----    1 root     netdev     81,   8 Jun  2 20:09 video16
crw-rw----    1 root     netdev     81,   5 Jun  2 20:09 video18
crw-rw----    1 root     netdev     81,   0 Jun  2 20:09 video19
crw-rw----    1 root     netdev     81,  10 Jun  2 20:09 video20
crw-rw----    1 root     netdev     81,  11 Jun  2 20:09 video21
crw-rw----    1 root     netdev     81,  12 Jun  2 20:09 video22
crw-rw----    1 root     netdev     81,  13 Jun  2 20:09 video23
crw-rw----    1 root     netdev     81,   9 Jun  2 20:09 video31
crw-------    1 root     root       10, 130 Jun  2 20:09 watchdog
crw-------    1 root     root      247,   0 Jun  2 20:09 watchdog0
crw-rw-rw-    1 root     root        1,   5 Jun  2 20:09 zero
brw-rw----    1 root     disk      254,   0 Jun  2 20:09 zram0
brw-rw----    1 root     disk      254,   1 Jun  2 20:09 zram1
brw-rw----    1 root     disk      254,   2 Jun  2 20:09 zram2
I don't see I2C.
dtparam=i2c_vc=on
i2c already configured on sda1. Reboot required.
dtparam=i2c_arm=on
i2c already configured on sda1. This addon was already run during this boot and no reboot occurred. 
no sdb1 available
no mmcblk0p1 available
This Configurator did it's job. Perform a hard-power-off reboot now.
You will need to reboot twice total, once to place the files, and again to activate the I2C.

Protection mode is switched off. I also restarted several times.

In the terminal, when I run:
lsmod | grep i2c
I don’t get an i2c_dev displayed.
image

Where is my mistake?

Edit:
Just pulled power from the Pi again and now it’s working…

hello why this error ??? how can i solve ???

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: ArgonOne Active Cooling
 Actively keeping your Argon One cool.
-----------------------------------------------------------
 Add-on version: 28d
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.3  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2022.10.5
 Home Assistant Supervisor: 2022.10.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Detecting Layout of i2c, we expect to see "1a" here.
checking i2c port 0 at /dev/i2c-0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
checking i2c port 1 at /dev/i2c-1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
checking i2c port 10 at /dev/i2c-10
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
checking i2c port 22 at /dev/i2c-22
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
Port not found...
I2C Port 255
Argon One was not detected on i2c. Argon One will show a 1a on the i2c bus above. This add-on will not control temperature without a connection to Argon One.
Current Temperature 54 °C
2022-10-29_15:37:10: 54C - Level 3 - Fan 3% (Quiet Medium)
Error: Could not open file `/dev/i2c-255' or `/dev/i2c/255': No such file or directory
Failed 98: i2cset -y "${port}" 0x01a "${fanPercentHex}"
Error: Could not open file `/dev/i2c-255' or `/dev/i2c/255': No such file or directory
Safe Mode Activated!
Failed 208: return ${returnValue}
Error: Could not open file `/dev/i2c-255' or `/dev/i2c/255': No such file or directory
Safe Mode Activated!

Looks like hardware failure. I’d check connections.

Hi there!
Great you made activating the I2C so easy, especially for me as a HA newby.
With HA haos_rpi4-64-9.3.img.xz I can implement the Argon Temperature Control, but not the I2C
Configurator. When I try to add it to addons only the heading shows. Not more. Is there anything I am doing wrong?

'Thanks for your support`

Just want to say I very much appreciated the FAQ…lol. I needed it drilled into my head exactly how you put it there. Thank you!! ArgonOne Linear Cooling is up and running!

2 Likes

Thank you. I really appreciate that your first post on the forum is a compliment. I don’t think I’ve seen that before. Very refreshing. Welcome to the forums!

Hi. Hoping you can help me. I managed to successfully installed and run the “HassOS Configurator” add-on and performed the 2 reboots of Home Assistant but am unable to install the “ArgonOne Temp Control” using the repository “adamoutler/HassOSArgonOneAddon”. When I enter this repository within Home Assistant Add-on’s and click the Add button nothing happens. Is there something that I am missing?
Appreciate any assistance you can offer.
Thank you.