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

Problem Replacing Device

Post by C4rtm4N »

Since I moved to 2025.1 I've had a problem with the HDD device on my Pi motherboard. The old device stopped working, I believe due to changes discussed here viewtopic.php?p=325078&hilit=motherboard#p325078

Whilst I can allow the new device to be created (which does update), if I try to replace the old one, it transfers all of the new data across then doesn't update anymore. A few seconds later a new device called HDD / is recreated

Debug logging shows the replace, the subsequent automatic deletion of the incorrect device then nothing else until I allow the recreation.

Any ideas how I can fix this given the logs don't show much?

Code: Select all

2025-08-08 00:26:26.218  Status: Replace old device 14 to new device 718 from 2025-05-10 10:02:52.
2025-08-08 00:26:26.470  Debug: CSQLHelper::DeleteDevices: ID: 718
2025-08-08 00:26:31.282  Debug: SQLH UpdateValueInt Raspberry01 CPU HwID:1  DevID:0000044D Type:243  sType:6 nValue:0 sValue:3.02 IDX: 16
2025-08-08 00:26:31.283  Motherboard: General/Percentage (Raspberry01 CPU)
2025-08-08 00:26:51.294  Debug: SQLH UpdateValueInt HDD /boot/firmware HwID:1  DevID:0000044E Type:243  sType:6 nValue:0 sValue:12.40 IDX: 715
2025-08-08 00:26:51.295  Motherboard: General/Percentage (HDD /boot/firmware)
2025-08-08 00:26:51.299  Debug: Device creation failed, Domoticz settings prevent accepting new devices.

2025-08-08 00:29:41.352  Debug: SQLH UpdateValueInt  HwID:1  DevID:00000450 Type:243  sType:6 nValue:0 sValue:57.44 IDX: 743
2025-08-08 00:29:41.353  Motherboard: General/Percentage (HDD /)
User avatar
gizmocuz
Posts: 2709
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Problem Replacing Device

Post by gizmocuz »

Just to be sure (because it is a normal percentage device):

Did you press 'Edit' on the >>> OLD <<< device, pressed 'Replace' and selected the >>> NEW <<< device?
Quality outlives Quantity!
User avatar
C4rtm4N
Posts: 56
Joined: Saturday 07 February 2015 21:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: UK
Contact:

Re: Problem Replacing Device

Post by C4rtm4N »

I did & must now have tried maybe 10 times following beta version upgrades.
I also tried the other way around after previous fails to see whether the histories would merge. Obviously they didn't & I needed to restore from a backup so that I didn't lose 10 years of data.
I'd really hoped the debug log would give me a clue but it looks to me that Domoticz thinks it's working correctly & the problem is with the change in the reporting of the HDD device 😪

Is there a way that I can change the properties of the original device so that they exactly match those of the one that's been reported since 2025.1, ie DevID 00000450 or would this be a bad idea?
User avatar
gizmocuz
Posts: 2709
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Problem Replacing Device

Post by gizmocuz »

I would personally just delete the old sensor... who cares about 10 years of history about harddisk size? :mrgreen:

I think I know what is going on....

This hardware class is using the device 'Options' field to store certain information and this was not copied when replacing a device

Could you try with beta 16758, this should solve the issue
Quality outlives Quantity!
User avatar
C4rtm4N
Posts: 56
Joined: Saturday 07 February 2015 21:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: UK
Contact:

Re: Problem Replacing Device

Post by C4rtm4N »

Many thanks, this has done the trick :D
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest