Page 1 of 1

Show Description in Switches tab for Virtual Switch

Posted: Monday 03 April 2023 19:56
by julasd
In my Domoticz I use digital inputs and outputs designed by me and using the CANBUS protocol. The DI modules have 16 digital inputs, UP to 8 zero crossing triac outputs used for LED lighting, or 6 relay outputs for switching higher currents. The data exchanged between the modules and Domoticz uses the OpenCan protocol modified by me. Domoticz runs on Rapberry Pi3 with added RS485_CAN_HAT module. Program written in Python exchanges data between modules and Domoticz. Inputs and outputs declared as “Virtual Sensor”. To define the address of the module I use the Description field as I have not found another field in the SQL database. When reviewing the switches, I would like to see the Description field in Sensors tab between “Type” text and “Log” “Edit” “Notifications” pushbuttons.
In the tabular view (Setup/Devices) I added a Description column in the devices. js file (works in Firefox, I can't force Chromium to accept changes probably because of cash):

What and in which file/files should I change to display the Description field?

Any hints welcome.

Re: Show Description in Switches tab for Virtual Switch

Posted: Tuesday 04 April 2023 0:39
by waltervl
If you would make a python plugin out of your python program you can use the device ID for address. Now the device ID is managed by the virtual devices hardware gateway.

Re: Show Description in Switches tab for Virtual Switch

Posted: Wednesday 05 April 2023 20:27
by julasd
I just want to add the "Description" field to the "Light/Switch" sensor view in the "Sensors" tab. I can't find any place in js files where I can change it.

Re: Show Description in Switches tab for Virtual Switch

Posted: Wednesday 05 April 2023 23:20
by waltervl
Me neither.