Page 1 of 1
[SOLVED] Main_Board_Raspberry Hardware since update 2025.1
Posted: Wednesday 07 May 2025 12:41
by Lowrendzow
Hi everyone! I'm currently testing the latest Raspbian version of Domoticz since its 2025.1 release. Everything is running perfectly. However, I have a very, very, very minor discomfort that I can't quite explain.
I usually monitor the CPU, RAM, and DISK via "Main_Board_Raspberry", and since the update, the "HDD /" no longer sends any stats. Everything else works: HDD/Boot is fine, CPU is fine, RAM is fine — everything except the HDD /.
No errors in the Domoticz logs and I haven't been able to find which part of the code is making these measurements. Is anyone else experiencing this issue?"
Is there a small screwdriver tweak I can do myself to fix this? Cheers!
Re: Main_Board_Raspberry Hardware since update 2025.1
Posted: Wednesday 07 May 2025 14:29
by FireWizard
Re: Main_Board_Raspberry Hardware since update 2025.1
Posted: Wednesday 07 May 2025 14:43
by Lowrendzow
Hi,
to work around the issue, in the meantime, I created this Lua script with a time trigger.
my HDD/ is idx 38
Code: Select all
commandArray = {}
-- Exécute la commande df
local handle = io.popen("/bin/df -h /")
local result = handle:read("*a")
handle:close()
--print("Brut: [" .. result .. "]")
if result then
local usage = result:match("(%d+)%%")
if usage then
local disk_usage = tonumber(usage)
print("Utilisation disque : " .. disk_usage .. "%")
-- Met à jour le device virtuel de type "Percentage"
-- Format correct avec ID 38
commandArray["UpdateDevice"] = "38|0|" .. tostring(disk_usage)
else
print("Erreur : pas de pourcentage trouvé dans -> [" .. result .. "]")
end
else
print("Erreur : aucun retour de commande")
end
return commandArray
Re: Main_Board_Raspberry Hardware since update 2025.1
Posted: Wednesday 07 May 2025 14:45
by Lowrendzow
Thank you, I'll take a look. I'm really sorry, I did try to search the forum before posting. My fault!
Re: Main_Board_Raspberry Hardware since update 2025.1
Posted: Wednesday 07 May 2025 15:06
by Lowrendzow
I've gone through the history, but I don’t quite understand what to do. Should I delete the device? Yes, but? I still don’t see it updating. I did a manipulation to keep the sensor data, which was:
#1 Create a dummy, replace HDD / with this dummy to keep the data in the dummy.
#2 Delete my HDD / device.
#3 Re-add it. And it still doesn’t update.
#4 Disable the hardware 'Motherboard sensors'.
#5 Reactivate it.
For now, I’m sticking with my Lua solution that allows me to update my device.
Re: Main_Board_Raspberry Hardware since update 2025.1
Posted: Wednesday 07 May 2025 15:24
by FireWizard
Hi @Lowrendzow ,
Do the following:
As you have installed 2025.1, build 16678 or beta 16675,
I do not know were you came from, but I assume the stable version 2024.7 or lower
1. In Setup >>Settings:Enable "Accept new Hardware Devices" (tick the box) or Press "Allow for 5 Minutes)
2. Restart Domoticz. The way, you have to do this, depends on your OS.
In my case:
Code: Select all
sudo service domoticz stop
sudo service domoticz start
3. Check in Setup >> Devices, if new devices have been added.
4. If so, enable these (green >> blue arrow)
5. Merge the data of the old IDX into the new IDX.
See:
https://wiki.domoticz.com/Managing_Devi ... ace_device
This should do the job.
Regards
Re: Main_Board_Raspberry Hardware since update 2025.1
Posted: Wednesday 07 May 2025 15:26
by waltervl
I think the HDD drives are added automatically to Domoticz, only you have to activate the manually in menu Setup-Devices to get them visible in the Device tab Other (click on the green arrow).
In the past they probably were also activated automatically.
Re: Main_Board_Raspberry Hardware since update 2025.1
Posted: Wednesday 07 May 2025 15:31
by FireWizard
@waltervl
Walter,
I think, it are new devices, as far as, I know.
So you have to enable "Accept new Hardware Devices"
I'm not aware of changes since viewtopic.php?p=325078&hilit=motherboard#p325078
Are you?
Regards
Re: Main_Board_Raspberry Hardware since update 2025.1
Posted: Wednesday 07 May 2025 15:41
by Lowrendzow
Gentlemen (ladies?)
I am super confused because I have never had this problem before, I regularly update Domoticz since 2017... and your solution worked,
namely "Accept new peripherals" then restart DomoticZ, and indeed a new HDD/ appeared, I did not proceed to a replacement to keep my graphic data.
Thanks again it is solved!
Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1
Posted: Wednesday 07 May 2025 16:10
by FireWizard
Hello @Lowrendzow,
You wrote:
I am super confused because I have never had this problem before,
There is no reason to be confused and I understand that you never had a problem before
BUT
A PR has been published by the end of March, this year, and @gizmocuz merged this PR in build 16611
Because of this PR new hardware device are created ( if you have enabled "Accept new Hardware Devices") and the old hardware devices
stopped updating, as you have discovered.
As this PR now also appears in the new stable 2025.1, all users, that use motherboard sensors in Domoticz will have to use the new hardware devices.
I expect more questions like these.
I regularly update Domoticz since 2017.
So do I. I test more or less every beta. But you did not update after, let's say April 1st. and so you never had this issue, up to now.
I did not proceed to a replacement to keep my graphic data.
If you follow the description in the WIKI ( I sent you the link ), it is quite easy and your historical data is transferred to your new IDX.
Regards
Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1
Posted: Saturday 10 May 2025 23:12
by C4rtm4N
I've got the same issue but the suggested fix doesn't work for me (just updated to beta 16682 & it's still the same).
The new device appears & updates but when I try to replace the old one with it, the old one remains (& doesn't update) and the new one disappears (as it should). If I put the "Accept New Hardware Devices" setting back to on, the new device recreates and I'm back to square one.
Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1
Posted: Tuesday 13 May 2025 9:54
by C4rtm4N
Can a mod please remove the [solved] tag from this topic as clearly it isn't, there's a workaround that works for some but as things stand the only way that I get my sensor back is to use the new one & lose 10 years worth of historical data
Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1
Posted: Tuesday 13 May 2025 10:01
by waltervl
So you have an issue with the replace function, not the hdd devices.
Did you try the replace function the other way around?
Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1
Posted: Tuesday 13 May 2025 12:10
by C4rtm4N
Will the reverse replace keep the history? I don't want to lose it.
Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1
Posted: Tuesday 13 May 2025 17:17
by waltervl
The replace function is created to keep the history of the old device.
You can always make a backup of the database before trying out through menu Setup - Settings, tab backup restore. If it goes wrong you can restore the backup easily.
Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1
Posted: Sunday 18 May 2025 0:34
by C4rtm4N
The reverse replace deletes all of the historical information. Is there anything else that I can try to force the merger of the new & old?