Hi Peter,
Great it is working out for you! In the config there is a question that the lower part breaks when it encounters a temperature. Is that right? It should be able to show temperatures as well.
Hi Peter,
Great it is working out for you! In the config there is a question that the lower part breaks when it encounters a temperature. Is that right? It should be able to show temperatures as well.
I made some modifications to the code:
Fixed the switching positions of gauges (I think, it doesn’t happen to me a lot, so testing is a bit difficult)
Added ‘Custom gauges’. You can use every type of device to be displayed as a gauge as long as you specify the correct config settings (also see the readme).
My customGauge config is:
customGauges: {
headerLabel: "Overige",
showLabel: true,
devices: [
{
idx: "1356",
deviceHeader: "Volt",
lowerText: "Voltage",
gaugeAppendText: "volt",
gaugeMaxValue: 250,
},
{
idx: "2057",
deviceHeader: "Afstand",
gaugeAppendText: "cm",
gaugeMaxValue: 1000,
markerColor: "#70db70"
}
]
},
This results in:
Please download the latest code from GitHub and give it a try! Let me know it you encounter any problems.
This sometimes seems to happen indeed. I notices it as well. The different gauges aren’t always processed in the same order and that causes the switch of position. I have a look at this as well. It should be possible to always order them according to the order in the config.
I think you are right why it is not loading. I’ll have a look at the multiple requests this weekend.
@peterh I’ll have a look at it this weekend. Could you post the JSON output from the devices so I can have a look where de field with the data are?
This can be done with the following link:
"http://DOMOTICZ-IP:PORT/json.htm?type=devices&rid=IDX
Would an option be that you add the module a second time in the config with option “All”? Then the devices are displayed separately.
My luxaflex are operated with MQTT. I build in a servo myself and attached it to a NodeMCU. Domoticz sends an MQTT command when I press a dummy switch.
Thanks for the suggestion! I added the module to the page.
The plugin now supports basic auth for Domoticz.
Does this indeed solve the problem? I updated the readme this morning with the install and performed the update with a script that automatically does the npm install for alle modules.
Wow, that’s strange. It seams like a more strict interpretation of the code in package.json. I validated the JSON again and made one minor change. Could you pull the code from GitHub and try again? Really hope this solves the problem.