I have some shutters (blinds) and I would like to change the value displayed cause it's in uppercase.
I tried the textOn/textOff but it's not working.
I tried the custom.js with function getStatus_MyBlind(block), and I can change the title (with block.title=), but how to change the value?
Thanks for your help
Last edited by TroisSix on Monday 08 March 2021 18:28, edited 1 time in total.
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
TroisSix wrote: ↑Friday 05 March 2021 17:53
Hi huys,
I have some shutters (blinds) and I would like to change the value displayed cause it's in uppercase.
I tried the textOn/textOff but it's not working.
I tried the custom.js with function getStatus_MyBlind(block), and I can change the title (with block.title=), but how to change the value?
Thanks for your help
It was hardcoded as ON and OFF (translated according your language setting).
I've just changed in latest beta that the textOn/textOff parameters can be used. Can you test?
Ok I will search a way to upgrade from the master to the beta, and come back to you, thanks
Edit: is that enough to upgrade from master to beta: (with a copy of the config js and co) ?
and is there a way to hide a block? cause I discovered that I need some buttons for the js and change the colors of other blocks, but I don't want to display these ones.
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
TroisSix wrote: ↑Friday 05 March 2021 22:25
Ok I will search a way to upgrade from the master to the beta, and come back to you, thanks
Edit: is that enough to upgrade from master to beta: (with a copy of the config js and co) ?
and is there a way to hide a block? cause I discovered that I need some buttons for the js and change the colors of other blocks, but I don't want to display these ones.
To be able to recover from mistakes, make a copy of CONFIG.js, custom.css and custom.js.
Then, normally the following should be sufficient to switch to beta:
@Lokonli
So I confirm the textOn/textOff is working fine with the latest beta: I can specify the text I want even for my blinds, great guys
Is there also a way to modify this state of another block within a function function getStatus_MyBlock(block)?
Dashticz.setBlock('AnotherBlind', {title: 'New title'}); is working to update the title of the blind, but what's the way to modify its data/value/state?
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
TroisSix wrote:@Lokonli
So I confirm the textOn/textOff is working fine with the latest beta: I can specify the text I want even for my blinds, great guys
Is there also a way to modify this state of another block within a function function getStatus_MyBlock(block)?
Dashticz.setBlock('AnotherBlind', {title: 'New title'}); is working to update the title of the blind, but what's the way to modify its data/value/state?
You could set the value parameter via the setBlock function.
Can you describe in more detail what you try to achieve?