Update seems to have fixed it. Thanks
Seems to be working(?) again, thank you very much
@Coolie1101 I also get this message and wonder if only seeing DeskPi Pro Active Cooling!
is normal for the WebUI output, or maybe its because of the the bind failing?
You can check the temperatures of your Raspberry Pi by adding these lines to your configuration.yaml (it’ll also add a few other sensors):
sensor:
# Raspberry Pi4 CPU Temperature
- platform: command_line
name: CPU Temperature
command: "cat /sys/class/thermal/thermal_zone0/temp"
# If errors occur, make sure configuration file is encoded as UTF-8
unit_of_measurement: "°C"
value_template: "{{ value | multiply(0.001) | round(1) }}"
- platform: systemmonitor
resources:
- type: processor_use
- type: processor_temperature
- type: memory_free
- type: disk_use_percent
There is no information on what to put in the SerialDevice*
box on the Configuration page for this AddOn, so I found my serial device by looking at:
Settings > System > Hardware > (the 3 dots in top right) > All Hardware
…and searching for: Serial
ttyUSB2 had the subheading: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
…so for my system, I’d put /dev/ttyUSB2
in the SerialDevice*
box (it’s DEVNAME
field, if you open up the dropdown to look).
Here is a look at my logs, showing it running (even with a broken? output):
(My settings are Low=32c, Medium=38c, High=45c, QuietProfile disabled):
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
nc: bind: Address in use
Current Temperature 40 °C
Level 3 - Fan 66% (Medium)
Current Temperature 40 °C
Current Temperature 38 °C
Level 2 - Fan 33% (Low)
Current Temperature 39 °C
Level 3 - Fan 66% (Medium)
Current Temperature 39 °C
Current Temperature 39 °C
Current Temperature 38 °C
Level 2 - Fan 33% (Low)
Current Temperature 38 °C
Current Temperature 38 °C
Current Temperature 39 °C
Level 3 - Fan 66% (Medium)
Current Temperature 39 °C
Current Temperature 39 °C
Current Temperature 39 °C
Current Temperature 38 °C
Level 2 - Fan 33% (Low)
Current Temperature 39 °C
Level 3 - Fan 66% (Medium)
Looks good to me.
What do you want to see there? I really just added the blank web page because it give you 2-extra security points on the addon home screen
Maybe have the last temperature & fan levels from log shown there, so people know its loaded & working?
I dunno if its possible to also get the text color, so it shows properly for people with dark mode / themes enabled?
I’m having another issue now though… /dev/ttyUSB2 has disappeared on my system due to a HomeAssistant update… so the cooling addon doesn’t work again -.-
Maybe the recent update to HomeAssistant overwrote the config.txt & dtoverlay=dwc2,dr_mode=host
needs added back in again?
“Strangely”, the add-on half-works with the SerialDevice*
set to /dev/ttyAMA0
… but I get the following failure:
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
nc: bind: Address in use
Current Temperature 34 °C
Level 2 - Fan 33% (Low)
/run.sh: line 85: /dev/ttyAMA0: Operation not permitted
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
punt!```
Managed to fix the missing /dev/ttyUSB2 by installing & running HassOS Serial Configurator again.
It complained that the entry already existed, so it had done nothing… but after a hard reset, /dev/ttyUSB2 was back again… and the cooling add-on was working again
This is a great add-in! Super easy to setup and configure with the DeskPi Pro. Works as exactly as expected. Thank you!
Is there any way to control the fan outside of the AddIn using automations? I think it would be nice to run the fan manually for testing or even just to toggle the quiet mode during times when I’m less likely to be around the device.
There would not be a good way to do that without increasing processing power and requiring loading of binaries continuously. I would not have a problem doing that in a second addon. If someone wants to submit a patch I’d be happy to support it. I have several projects I’m working on though.
I cannot get the ICE-Tower fan working. It never starts no matter the temperature. I tested the ICE-Tower fan manually and it works, but no matter what the fan is never started by this add-on. Can anyone tell me what I am doing wrong? I have used the HassOS Serial Configurator, restarted the DeskPi, installed this add-on. But I am not successful.
Any ideas what I have been doing wrong? Am I missing something?
What do the logs say?
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
nc: bind: Address in use
Current Temperature 43 °C
Level 3 - Fan 66% (Medium)
So I guess, it should be running, but it is not.
I also just noticed that the front USBs are not working
You need to enable the ports as mentioned in the first post. If that is done, then there is probably a hardware problem.
I struggled to get things working until I read this post in full. This would be worth including in the user documentation for this add-on.
I can only get it to work at first, but it broke once I restarted the hardware. I manually edited the config.txt when I did a fresh install of the HassOS onto an ssd. It finally detected the serial port. Everything worked fine. However, the addon stopped detecting the serial port after one restart. At this point the fans still ran but the addon could no longer detect the fans or adjust it. Another reset broke it completely. The fans stopped running after. I can’t possibly do a fresh install every time I want to restart the system. Am I really the only one facing this issue?
I spoke to the Deskpi folks and they told me that this is probably due to it no longer reading the config.txt when booting, and told me to do a fresh install. This is in line with what I am seeing, but I can’t possibly do a fresh install every single time I need to restart the system?
Does the config.txt still show the modifications? Enabling Serial also enables the front USB ports. Are you performing any USB OTG, or serial changes to HAOS?
I took the SSD out to check via windows once again that the line was indeed still in the config.txt. I put the SSD back in to boot it and now it works again. Mind you I’ve power cycled by unplugging the power many times, and made sure to have no other USB devices attached (aside from the one that connects the SSD to the raspberry pi itself), but it never worked. So it baffles me how random it is. I’m really grateful for your addon, and the continued support you try to provide. For now, it’s working but it leaves me very afraid of hard restarting home assistant going forward.
One thing that seems to get a lot of people, is you have to reboot the hardware twice. The first reboot emplaces files. The second hard reboot activates the I2C.
I have the exact same problem. I have installed everything as it should be installed (I think). My front USB-ports are working BUT the fan wont run… The fan is not faulty, it works but not with this case/addon.
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
Current Temperature 37 °C
nc: bind: Address in use
Quiet Level 2 - Fan 20% (Low)
Current Temperature 37 °C
Current Temperature 38 °C
Current Temperature 37 °C
Current Temperature 38 °C
Current Temperature 38 °C
UPDATE: I turned on Watchdog in the addon and voilá, the fan started to work… Pretty strange, but Im happy!
Could be your fan is going bad. If it has more drag resistance than expected, it would take more power to rotate, meaning self-starting at 30% power may not be possible. Moving the fan physically may give it the starting force it needs if this is the case.
Try setting your min/mid/max to 1/max/max. This will force it to start at 100% power unless it’s really cold where you are.
After I installed my DeskPi pro yesterday I was very happy to find your add-on. Great since I was not sure how if I just could install the Deskpi Pro software in the SSH terminal. So I did give your add-ons a go. Must have done something wrong since I have a hard time getting it starting. See the error logs.
So what did I oversee or do I need to get this going? I have only a ssd attached to the DeskPi no other usb or serial devices for now.