Page 2 of 2
Re: Display a different Variable value at the Dashboard with Blockly
Posted: Tuesday 30 April 2019 17:27
by waaren
besix wrote: Tuesday 30 April 2019 17:19
Thank you very much
waaren for help, but I get an error in line 18
I just had it when I tried to modify it myself. Still important, I do not have to have the max only current
link to foto
https://prntscr.com/nir6sx
Please post logs and scripsts here between code display tags. Use the </> button
The setpointVariable should be defined as type float because that is the type of the setPoint attribute that will be written to it.
I don't understand what you mean with "Still important, I do not have to have the max only current" Please elaborate.
Re: Display a different Variable value at the Dashboard with Blockly
Posted: Tuesday 30 April 2019 17:31
by besix
Ok, I will use </>
In the script, I need the current state of Set Point in the Device text
Ok, I set the variable float script is ok!
Gives max Set Piont
I just want to change it to work for each change of the Device Set Piont
Re: Display a different Variable value at the Dashboard with Blockly
Posted: Tuesday 30 April 2019 18:10
by waaren
besix wrote: Tuesday 30 April 2019 17:31
I just want to change it to work for each change of the setpoint
If I understand your requirement correctly this is all you need.
Code: Select all
return {
on = {
devices = { 'SetPoint' }, -- change to name of your setpoint device
},
execute = function(dz, item)
setpointTextDevice = dz.devices('Setpoint text sensor') -- change to name of your text device
setpointTextDevice.updateText('Current setpoint : ' .. dz.utils.round(item.setPoint,1) .. ' set at ' .. dz.time.rawTime)
end
}
Re: Display a different Variable value at the Dashboard with Blockly
Posted: Tuesday 30 April 2019 18:19
by besix
It was so easy.

Thank you. Works