Page 1 of 1

Where / how are the 'Data' formats defined for the values displayed on the Devices page?

Posted: Monday 16 May 2016 23:57
by DanD
Hi,

I'm trying to extend the Domoticz code for the Evohome system and I'd like to add an additional value to the Evohome Heating/Temperature devices which currently have their data defined as Temp;Setpoint;Mode. I've succeed in adding an additional sensor value within the database so I now have values with the structure Temp;Setpoint;Demand;Mode, but I can't work out how or where the display formats are defined for the information shown on the Domoticz Devices page. For example, the stored value '18.5;20.2;Auto' is displayed on the Devices page as '18.5, (20.2), Auto' and if I display my new record '18.5; 20.2;200; Auto' it appears on the Devices page as '18.5, (20.2), 200 until Auto' as the format assumes that my additional value is part of a datetime record.

Thanks,
Dan

Re: Where / how are the 'Data' formats defined for the values displayed on the Devices page?

Posted: Tuesday 17 May 2016 17:17
by DanD
I've started to realise that my previous post was a pretty dumb question as there seem to be far more linked attributes to a device than I intially realised. I've been focussing purely on the Domoticz C++ code and wrongly assumed that I could extend device definitions within this code. However, I decided to have a play with JSON queries of the new data records that I'd inserted and I realised that these queries also rely on the original database structures.

If I wanted to extend/modify a device definition in the Domoticz database to add in a new data item, where should I start? Should I submit this in the suggestions forum? As mentioned in my previous post, what I'm aiming to achieve is to extend the Evohome sTypeEvohomeZone device to add in a 'Demand' value which captures the current heat demand.

Thanks,
Dan