Page 2 of 2

Re: Dashticz v3.7.5 beta

Posted: Sunday 07 March 2021 21:45
by Lokonli
pvklink wrote: Sunday 07 March 2021 21:21 I can't get switch to work for the longfonds block
I changed the value from true to false, but nothing happens

Code: Select all

blocks['longfonds'] = {
	zipcode: '2543BA',
	title: 'Luchtkwaliteit',
        switch: true,
	housenumber: '25',
        width: 4,
}
The switch parameter is not implemented for special blocks like Longfonds.
The documentation is incorrect.

Re: Dashticz v3.7.5 beta

Posted: Monday 08 March 2021 8:04
by pvklink
ok, no problem :-)
I have another strange thing, some devices from Kerio (door, window sensors), do have an update_date var and when i activate them in dashticz to show it , it does not work for these devices.
In domoticz it is visible as last seen and also the json command gives an update_data for kerio devices

blocks[1752] ={title: 'Tuindeur', hide_data: true,width: 2,last_update: true, gotoslideOn:2}

Code: Select all

{
	"ActTime" : 1615187229,
	"AstrTwilightEnd" : "20:27",
	"AstrTwilightStart" : "05:19",
	"CivTwilightEnd" : "19:08",
	"CivTwilightStart" : "06:38",
	"DayLength" : "11:23",
	"NautTwilightEnd" : "19:48",
	"NautTwilightStart" : "05:59",
	"ServerTime" : "2021-03-08 08:07:09",
	"SunAtSouth" : "12:53",
	"Sunrise" : "07:12",
	"Sunset" : "18:35",
	"app_version" : "2020.2 (build 12934)",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 100,
			"CustomImage" : 0,
			"Data" : "Normal",
			"Description" : "",
			"Favorite" : 0,
			"HardwareDisabled" : false,
			"HardwareID" : 2,
			"HardwareName" : "rfxcom",
			"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
			"HardwareTypeVal" : 1,
			"HaveDimmer" : false,
			"HaveGroupCmd" : false,
			"HaveTimeout" : false,
			"ID" : "BFD1A0",
			"LastUpdate" : "2021-03-08 07:30:34",
			"MaxDimLevel" : 0,
			"Name" : "doorsensor_tuindeur_1",
			"Notifications" : "false",
			"PlanID" : "0",
			"PlanIDs" : 
			[
				0
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : 7,
			"Status" : "Normal",
			"StrParam1" : "",
			"StrParam2" : "",
			"SubType" : "X10 security",
			"SwitchType" : "Security",
			"SwitchTypeVal" : 11,
			"Timers" : "false",
			"Type" : "Security",
			"TypeImg" : "security",
			"Unit" : 0,
			"Used" : 1,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "1752"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}



Re: Dashticz v3.7.5 beta

Posted: Monday 08 March 2021 12:26
by Lokonli
pvklink wrote: Monday 08 March 2021 8:04 ok, no problem :-)
I have another strange thing, some devices from Kerio (door, window sensors), do have an update_date var and when i activate them in dashticz to show it , it does not work for these devices.
In domoticz it is visible as last seen and also the json command gives an update_data for kerio devices

blocks[1752] ={title: 'Tuindeur', hide_data: true,width: 2,last_update: true, gotoslideOn:2}

Code: Select all

{
	"ActTime" : 1615187229,
	"AstrTwilightEnd" : "20:27",
	"AstrTwilightStart" : "05:19",
	"CivTwilightEnd" : "19:08",
	"CivTwilightStart" : "06:38",
	"DayLength" : "11:23",
	"NautTwilightEnd" : "19:48",
	"NautTwilightStart" : "05:59",
	"ServerTime" : "2021-03-08 08:07:09",
	"SunAtSouth" : "12:53",
	"Sunrise" : "07:12",
	"Sunset" : "18:35",
	"app_version" : "2020.2 (build 12934)",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 100,
			"CustomImage" : 0,
			"Data" : "Normal",
			"Description" : "",
			"Favorite" : 0,
			"HardwareDisabled" : false,
			"HardwareID" : 2,
			"HardwareName" : "rfxcom",
			"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
			"HardwareTypeVal" : 1,
			"HaveDimmer" : false,
			"HaveGroupCmd" : false,
			"HaveTimeout" : false,
			"ID" : "BFD1A0",
			"LastUpdate" : "2021-03-08 07:30:34",
			"MaxDimLevel" : 0,
			"Name" : "doorsensor_tuindeur_1",
			"Notifications" : "false",
			"PlanID" : "0",
			"PlanIDs" : 
			[
				0
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : 7,
			"Status" : "Normal",
			"StrParam1" : "",
			"StrParam2" : "",
			"SubType" : "X10 security",
			"SwitchType" : "Security",
			"SwitchTypeVal" : 11,
			"Timers" : "false",
			"Type" : "Security",
			"TypeImg" : "security",
			"Unit" : 0,
			"Used" : 1,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "1752"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}


If I remember correctly, last_update was only shown if hide_data was set to false.

Could you check this?

Re: Dashticz v3.7.5 beta

Posted: Monday 08 March 2021 12:51
by pvklink
check it after 1700

Re: Dashticz v3.7.5 beta

Posted: Monday 08 March 2021 13:46
by pvklink
Tested it!

blocks[1752] ={title: 'Tuindeur', hide_data: true, width: 2,last_update: true, gotoslideOn:2}
blocks[2009] ={title: 'Voordeur', hide_data: false, width: 2,last_update: true, gotoslideOn:2}

Both devices dont give a update_date!