[SOLVED] Main_Board_Raspberry Hardware since update 2025.1 Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
Lowrendzow
Posts: 12
Joined: Friday 04 December 2020 10:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

[SOLVED] Main_Board_Raspberry Hardware since update 2025.1

Post 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!
Last edited by Lowrendzow on Wednesday 07 May 2025 15:53, edited 1 time in total.
User avatar
FireWizard
Posts: 1863
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Main_Board_Raspberry Hardware since update 2025.1

Post by FireWizard »

Hi @Lowrendzow

Please see: viewtopic.php?p=325078&hilit=motherboard#p325078

Regards
Lowrendzow
Posts: 12
Joined: Friday 04 December 2020 10:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Main_Board_Raspberry Hardware since update 2025.1

Post 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
Lowrendzow
Posts: 12
Joined: Friday 04 December 2020 10:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Main_Board_Raspberry Hardware since update 2025.1

Post by Lowrendzow »

FireWizard wrote: Wednesday 07 May 2025 14:29 Hi @Lowrendzow

Please see: viewtopic.php?p=325078&hilit=motherboard#p325078

Regards
Thank you, I'll take a look. I'm really sorry, I did try to search the forum before posting. My fault!
Lowrendzow
Posts: 12
Joined: Friday 04 December 2020 10:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Main_Board_Raspberry Hardware since update 2025.1

Post 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.
User avatar
FireWizard
Posts: 1863
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Main_Board_Raspberry Hardware since update 2025.1

Post 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
User avatar
waltervl
Posts: 5721
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Main_Board_Raspberry Hardware since update 2025.1

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
FireWizard
Posts: 1863
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Main_Board_Raspberry Hardware since update 2025.1

Post 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
Lowrendzow
Posts: 12
Joined: Friday 04 December 2020 10:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Main_Board_Raspberry Hardware since update 2025.1

Post 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!
User avatar
FireWizard
Posts: 1863
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1

Post 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
User avatar
C4rtm4N
Posts: 53
Joined: Saturday 07 February 2015 21:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: UK
Contact:

Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1

Post 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.
User avatar
C4rtm4N
Posts: 53
Joined: Saturday 07 February 2015 21:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: UK
Contact:

Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1

Post 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
User avatar
waltervl
Posts: 5721
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1

Post 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?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
C4rtm4N
Posts: 53
Joined: Saturday 07 February 2015 21:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: UK
Contact:

Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1

Post by C4rtm4N »

Will the reverse replace keep the history? I don't want to lose it.
User avatar
waltervl
Posts: 5721
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
C4rtm4N
Posts: 53
Joined: Saturday 07 February 2015 21:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: UK
Contact:

Re: [SOLVED] Main_Board_Raspberry Hardware since update 2025.1

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest