Device attribute "HaveTimeout" : false/true

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

Device attribute "HaveTimeout" : false/true

Post by McMelloW »

Some of my virtual custom device are only updated during the daytime. At one hour after sunset they got a big redbar. I think it has to do with the HaveTimeout attribute of the device.
Is there a way to disable this "HaveTimeout" : false/true toggle? So I do't see those ugly redbar devices.
Greetings McMelloW
SweetPants

Re: Device attribute "HaveTimeout" : false/true

Post by SweetPants »

Disable data timeout on the Dummy hardware of the device or set it to a time that is suitable
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

Re: Device attribute "HaveTimeout" : false/true

Post by McMelloW »

SweetPants wrote: Saturday 10 March 2018 17:52 Disable data timeout on the Dummy hardware of the device or set it to a time that is suitable
Thanks, but the data timeout on the Dummy hardware is already disabled. So that is not of any influence or it is a Domoticz bug
Greetings McMelloW
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

Re: Device attribute "HaveTimeout" : false/true

Post by McMelloW »

Any device / sensor expert out there willing help me.
How do I update the device attribute "HaveTimeout" : false/true toggle?
Or is there a way to fake the attribute "LastUpdate"
Or change the SensorTimeOut to something else then 60
Greetings McMelloW
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Device attribute "HaveTimeout" : false/true

Post by waaren »

Is changing the value of Settings -> Systems -> Other -> Sensor Timeout: to a high value not working for you ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

Re: Device attribute "HaveTimeout" : false/true

Post by McMelloW »

waaren wrote: Tuesday 13 March 2018 12:19 Is changing the value of Settings -> Systems -> Other -> Sensor Timeout: to a high value not working for you ?
That is an option. However, this timeout number is used by all my sensors.
Some sensors are only updated during daytime. For those sensors it would be very nice to change the Sensor Timeout to avoid the BIG RED BAR at the sensor. :)
Greetings McMelloW
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Device attribute "HaveTimeout" : false/true

Post by waaren »

My guess is that the quickest / easiest way to prevent the red bars showing up is to change the way the time out is presented on the webpage. So must be somewhere in the domoticz/www directory. I had a quick look at the files there and did find some references to LastUpdateTIme (see below) but my knowledge of js, css and the likes is (very) close to zero.


TemperatureController.js: $.LastUpdateTime = parseInt(data.ActTime);
TemperatureController.js: $.LastUpdateTime = parseInt(data.ActTime);
TemperatureController.js: $.LastUpdateTime = parseInt(0);
UserVariablesController.js: "4": item.LastUpdate
UtilityController.js: url: "json.htm?type=devices&filter=utility&used=true&order=[Order]&lastupdate=" + $.LastUpdateTime + "&plan=" + w
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest