change on the fly dummy switch displayed data
Moderator: leecollings
- waltervl
- Posts: 6683
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: change on the fly dummy switch displayed data
There is not much to display on a switch besides the state on/off. If the device is reporting back a failed or similar you can set the switch back to the original state. The rest you can log in the log file.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- waltervl
- Posts: 6683
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: change on the fly dummy switch displayed data
I do not understand you, I am sorry. Domoticz is an home automation system. Not a fast running machine controller with all kind of nice features. So to have feedback from your device you have to send it back. And for a switch the only feedback is the state. If you have a proper protocol you wait for feedback of your device (command failed or not). If you want more for debug purposes you can put it in the log file.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- waltervl
- Posts: 6683
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: change on the fly dummy switch displayed data
In a python plugin and dzVents you can flag a device red as being not responding/out of range.I think it is related to the signal strength value. Or yellow when the battery is low. You could use those 2 color flagging to indicate your needs by Lua (if possible, I have no Lua knowledge).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
rrozema
- Posts: 470
- Joined: Thursday 26 October 2017 13:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Delft
- Contact:
Re: change on the fly dummy switch displayed data
The user interface for domoticz follows mostly an "optimistic pattern": on many -but not all- hardwares you'll find the behavior is that the UI changes state immediately when the user initiates some command. After the command is sent Domoticz queries the hardware for the new state and if this results in another state than expected, the user interface is updated. This depends however very much on the capabilities of the hardware plus on the actual implementation.
I do not think that there is in Domoticz a possibilty to intercept the command before it gets sent to the hardware and based on some logic make the user interface behave differently than it does normally.
What you can do is to make a dummy device show some kind of status depending on the status of other devices in your system. For example, you could add a dummy temperature sensor to show the average temperature measured by all temperature sensors in your home, then put that sensor on some dashboard. To implement this you would add a (dzvents) script to all of your temp sensors and in this script every time one of the sensors changes you calculate the new average temp and update that dummy sensor. Is that what you need?
I do not think that there is in Domoticz a possibilty to intercept the command before it gets sent to the hardware and based on some logic make the user interface behave differently than it does normally.
What you can do is to make a dummy device show some kind of status depending on the status of other devices in your system. For example, you could add a dummy temperature sensor to show the average temperature measured by all temperature sensors in your home, then put that sensor on some dashboard. To implement this you would add a (dzvents) script to all of your temp sensors and in this script every time one of the sensors changes you calculate the new average temp and update that dummy sensor. Is that what you need?
- waltervl
- Posts: 6683
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: change on the fly dummy switch displayed data
As indicated you can do this when you create a python plugin out of your json send actions. If Dashticz can do this you should ask in the Dashticz subforum.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- madpatrick
- Posts: 760
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2025.2
- Location: Netherlands
- Contact:
Re: change on the fly dummy switch displayed data
You can easily display messages with Dashticz
For example:
viewtopic.php?p=258285#p258285
For example:
Code: Select all
// geeft alarm melding van andere sensor
function getStatus_262(block) {
var Data = block.device.Data;
var idx = block.idx;
var device = block.device;
if(parseFloat(Data) <1.5){
Dashticz.setBlock('regen', {addClass: 'warning'});
block.addClass = 'warning'; // set the addClass parameter for block 262
}
else {
Dashticz.setBlock('regen', {addClass: 'none'});
block.addClass = ''; // reset the addClass parameter for block 262
}
}-= HP server GEN11 =- ZwaveJS-=- Domoticz v2025.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
-= Checkout https://github.com/MadPatrick for the plugins =-
Who is online
Users browsing this forum: No registered users and 1 guest