
Any idea what causes it?
Moderators: leecollings, remb0
Is this on the default theme?philchillbill wrote: ↑Tuesday 01 December 2020 18:57 Just noticed something I've never seen before, a dark/grayish UI entry for one of my sensors:
Yeswaaren wrote:Is this on the default theme?philchillbill wrote: ↑Tuesday 01 December 2020 18:57 Just noticed something I've never seen before, a dark/grayish UI entry for one of my sensors:
Doesnt that screw up the history?JohnOosterlaken wrote: ↑Wednesday 23 December 2020 21:39 if fixed it by recreating the item via the GUI and not using a url.
it seems that this way the hardware type is not unknown anymore.
In domoticz terms a device object is connected to a hardware object.
It should not be possible to create a device without a 'parent' hardware without entering it directly in the database using an external program.
Code: Select all
dzDir=/home/pi/domoticz # change to your domoticz dir
sudo sqlite3 --header $dzDir/domoticz.db "SELECT Name, Id , HardwareID FROM DeviceStatus WHERE HardwareID NOT IN (SELECT ID FROM Hardware)"
sudo sqlite3 --header $dzDir/domoticz.db "SELECT Id, Enabled, Type, Name FROM Hardware"
The guide is not complete.MikeyMan wrote: ↑Monday 25 January 2021 11:49 Followed https://ehoco.nl/watermeter-uitlezen-in ... on-script/
Dont see any hardware created here if i'm correct. So maybe the guide is not good
Can i run that now still? Or will that mess up the history?waaren wrote: ↑Monday 25 January 2021 12:04The guide is not complete.MikeyMan wrote: ↑Monday 25 January 2021 11:49 Followed https://ehoco.nl/watermeter-uitlezen-in ... on-script/
Dont see any hardware created here if i'm correct. So maybe the guide is not good
in the line http: //192.168.2.152:8080/json.htm?type=createvirtualsensor&idx=29&sensorname=Water&sensortype=113 ,
29 is the hardware ID. You should change that number to the ID of one of your hardware objects and preferable your "Dummy (Does nothing, use for virtual switches)" hardware as it shown on the hardware tab.
No don't do that. Can you execute the sqlite3 commands I posted earlier? With that information I can advise you how to solve it.
Sure!
Code: Select all
sudo sqlite3 --header $dzDir/domoticz.db "SELECT Name, Id , HardwareID FROM DeviceStatus WHERE HardwareID NOT IN (SELECT ID FROM Hardware)"
Name|ID|HardwareID
Water|43|29
Code: Select all
pi@raspberrypi:~ $ sudo sqlite3 --header $dzDir/domoticz.db "SELECT Id, Enabled, Type, Name FROM Hardware"
ID|Enabled|Type|Name
1|1|67|Domoticz Internal
2|1|4|Slimme Meter
3|1|75|Evohome
5|1|64|Zonnepanelen
6|1|15|Somfy Alarm
9|1|78|Weer
10|1|15|Graaddagen
11|1|15|Tempsensoren
13|1|94|Shelly
14|1|15|Backup
19|1|21|Zwave
OK. You can doMikeyMan wrote: ↑Monday 25 January 2021 15:20Code: Select all
sudo sqlite3 --header $dzDir/domoticz.db "SELECT Name, Id , HardwareID FROM DeviceStatus WHERE HardwareID NOT IN (SELECT ID FROM Hardware)" Name|ID|HardwareID Water|43|29 sudo sqlite3 --header $dzDir/domoticz.db "SELECT Id, Enabled, Type, Name FROM Hardware" ID|Enabled|Type|Name 1|1|67|Domoticz Internal
Code: Select all
sudo service domoticz stop
dzDir=/home/pi/domoticz # change to your domoticz dir
sudo cp $dzDir/domoticz.db domoticz.db_keep # just to be sure
sudo sqlite3 $dzDir/domoticz.db "UPDATE DeviceStatus SET HardwareID = 1 WHERE ID = 43"
sudo service domoticz start
Users browsing this forum: No registered users and 1 guest