Grayed-out UI item in Utility Sensors Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

User avatar
philchillbill
Posts: 399
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Grayed-out UI item in Utility Sensors

Post 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.
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Grayed-out UI item in Utility Sensors

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Grayed-out UI item in Utility Sensors

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Grayed-out UI item in Utility Sensors

Post 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!
Bochelork
Posts: 12
Joined: Sunday 26 November 2017 12:53
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Grayed-out UI item in Utility Sensors

Post 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?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Grayed-out UI item in Utility Sensors

Post 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)"

Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Bochelork
Posts: 12
Joined: Sunday 26 November 2017 12:53
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Grayed-out UI item in Utility Sensors

Post by Bochelork »

Thanks, that worked! (typo Enabed ->Enabled)
Pantagruel
Posts: 7
Joined: Wednesday 24 April 2019 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10659
Location: Nieuw Vennep
Contact:

Re: Grayed-out UI item in Utility Sensors

Post 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!
User avatar
MadMedic
Posts: 31
Joined: Wednesday 26 October 2016 14:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Huizen, the Netherlands
Contact:

Re: Grayed-out UI item in Utility Sensors

Post 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 !
.
"Life is too short for bad coffee"
User avatar
waltervl
Posts: 5729
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Grayed-out UI item in Utility Sensors

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest