Page 1 of 1
Device attribute "HaveTimeout" : false/true
Posted: Saturday 10 March 2018 17:28
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.
Re: Device attribute "HaveTimeout" : false/true
Posted: Saturday 10 March 2018 17:52
by SweetPants
Disable data timeout on the Dummy hardware of the device or set it to a time that is suitable
Re: Device attribute "HaveTimeout" : false/true
Posted: Saturday 10 March 2018 17:59
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
Re: Device attribute "HaveTimeout" : false/true
Posted: Tuesday 13 March 2018 12:08
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
Re: Device attribute "HaveTimeout" : false/true
Posted: Tuesday 13 March 2018 12:19
by waaren
Is changing the value of Settings -> Systems -> Other -> Sensor Timeout: to a high value not working for you ?
Re: Device attribute "HaveTimeout" : false/true
Posted: Tuesday 13 March 2018 12:37
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.

Re: Device attribute "HaveTimeout" : false/true
Posted: Tuesday 13 March 2018 21:25
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