Page 2 of 2

Re: Grayed-out UI item in Utility Sensors

Posted: Monday 25 January 2021 17:43
by philchillbill
@waaren, That fixed it for me too - many thanks !

The original post in viewtopic.php?p=128783#p128783 is then also incomplete regarding the hardware id because that's the tutorial I followed a few years ago to create that water meter.

Re: Grayed-out UI item in Utility Sensors

Posted: Monday 25 January 2021 19:39
by waaren
MikeyMan wrote: Monday 25 January 2021 15:35 Is that a reserved hardware ID? The internal one?
I don't know if it is reserved but it is in all my domoticz systems. Preferable I would connect the loose deviceid(s) with a dummy hardware but I could not tell from your list of hardware if you have such a hardware and connect it to internal is also OK.

Re: Grayed-out UI item in Utility Sensors

Posted: Monday 25 January 2021 19:56
by waaren
philchillbill wrote: Monday 25 January 2021 17:43 @waaren, That fixed it for me too - many thanks !

The original post in viewtopic.php?p=128783#p128783 is then also incomplete regarding the hardware id because that's the tutorial I followed a few years ago to create that water meter.
There was indeed room for confusion in that post and it advises to use API calls where it can be done much easier from within the GUI.
by creating a dummy hardware from the hardware tab and use the button on that newly created hardware to create a new virtual device of type counter.

Re: Grayed-out UI item in Utility Sensors

Posted: Monday 19 April 2021 12:28
by sammyke007
I've ran into the same "problem" today after updating to 2021.1. Fixing it with the sqlite3 commands did the magic. Tnx @waaren!

Re: Grayed-out UI item in Utility Sensors

Posted: Monday 19 April 2021 13:51
by Bochelork
I've grayed out items with a lot of sensors. The reason is that the hardware is disabled, because I do not use the hardware plugins anymore. Data comes from scripts. E.g. Wunderground comes from my own script. I kept the sensors, but hardware is disabled. Updates are done with domoticz api or mqtt/in from scripts. Is there a way to show the sensors from disabled hardware NOT grayed out?

Re: Grayed-out UI item in Utility Sensors

Posted: Monday 19 April 2021 14:40
by waaren
Bochelork wrote: Monday 19 April 2021 13:51 Is there a way to show the sensors from disabled hardware NOT grayed out?
No.

What you could do is define a "Dummy (Does nothing, use for virtual switches only)" hardware and connect the devices updated via JSON / MQTT using sqlite or similar to this 'hardware' using the following commands.

Code: Select all

cd <domoticz dir>
sudo sqlite3 domoticz.db "UPDATE DeviceStatus SET HardwareID = (SELECT ID from Hardware WHERE Type = 15 ORDER BY ID DESC LIMIT 1) WHERE HARDWAREID IN (SELECT ID FROM Hardware WHERE Enabled = 0)"


Re: Grayed-out UI item in Utility Sensors

Posted: Monday 19 April 2021 14:50
by Bochelork
Thanks, that worked! (typo Enabed ->Enabled)

Re: Grayed-out UI item in Utility Sensors

Posted: Friday 30 April 2021 21:52
by Pantagruel
Thanks @waaren, The sqlite3 routine did the trick - Thanks !

As mentioned before, I too created an RFXMeter some years ago according to: viewtopic.php?p=128783#p128783.
The update to 2021.1 resulted in a grayed out UI item.

Again thanks for the fix!

Re: Grayed-out UI item in Utility Sensors

Posted: Monday 13 September 2021 17:43
by MadMedic
Used this helpfull guide too, with the appropiate idx's, worked like a charm.
was the watermeter sensor here, too. *Coincidence ?

Thnx anyway, guys !

Re: Grayed-out UI item in Utility Sensors

Posted: Monday 13 September 2021 18:01
by waltervl
MadMedic wrote: Monday 13 September 2021 17:43 Used this helpfull guide too, with the appropiate idx's, worked like a charm.
was the watermeter sensor here, too. *Coincidence ?

Thnx anyway, guys !
Not a coincidence, the manual on the website https://ehoco.nl/watermeter-uitlezen-in ... on-script/ and the same forumtopic viewtopic.php?p=128783#p128783 is incorrect, resulting in this issue.