Using sub-devices and friendly device IDs (e.g. Sensor_1)
Posted: Wednesday 16 September 2020 16:36
I've been trying to get Dashticz up and running, as Imperihome has gone west... had some strange things happening; hopefully someone knows of a way around these.
When using friendly block IDs rather than the idx number, I don't think that everything works quite as well as with idx values:
(i) using spaces in the names - e.g. 'Hall sensor' - causes the device to display as an empty widget, no text or icon, but clickable and pops up the right chart;
(ii) the _1, _2 syntax for getting at the sub-devices (temp, hum, etc) doesn't work when the block ID isn't the idx number; '653_1' works, 'HallSensor_1' does not (no widget, just empty space). Notably, using '653_1' still works even when the block ID is 'HallSensor', and the widget label is the domoticz device name not the one defined in the dashticz block, so I guess that the sub-device handling is not using the blocks as defined in CONFIG.js but instead is hard-wired to the device ids.
Is there a way to use friendly names with sub-devices?
Friendly names are much more readable and also provide a layer of abstraction so that columns don't have to be changed in addition to the block if the underlying device idx changes in domoticz.
Also, is there a single widget for temp/hum sensors, or do those have to be handled as two items that show in separate widgets? A simple '23C / 45%' in one widget would look cleaner IMO.
Thanks!
When using friendly block IDs rather than the idx number, I don't think that everything works quite as well as with idx values:
(i) using spaces in the names - e.g. 'Hall sensor' - causes the device to display as an empty widget, no text or icon, but clickable and pops up the right chart;
(ii) the _1, _2 syntax for getting at the sub-devices (temp, hum, etc) doesn't work when the block ID isn't the idx number; '653_1' works, 'HallSensor_1' does not (no widget, just empty space). Notably, using '653_1' still works even when the block ID is 'HallSensor', and the widget label is the domoticz device name not the one defined in the dashticz block, so I guess that the sub-device handling is not using the blocks as defined in CONFIG.js but instead is hard-wired to the device ids.
Is there a way to use friendly names with sub-devices?
Friendly names are much more readable and also provide a layer of abstraction so that columns don't have to be changed in addition to the block if the underlying device idx changes in domoticz.
Also, is there a single widget for temp/hum sensors, or do those have to be handled as two items that show in separate widgets? A simple '23C / 45%' in one widget would look cleaner IMO.
Thanks!