Re: New Dashboard Design
Posted: Monday 03 April 2017 16:48
Ok, dont you want any confirmation when pressed that button?
Verstuurd vanaf mijn SM-G930F met Tapatalk
Verstuurd vanaf mijn SM-G930F met Tapatalk
Open source Home Automation System
https://forum.domoticz.com/
Thx for the reply... Am I missing somethingrobgeerts wrote:Ok, dont you want any confirmation when pressed that button?
The setpoint is the value (degrees) to set the thermostat to. Now it shows the actual value, but I don't have possibility to set to other temperature like in Domoticz. If that would be possible it would be greatrobgeerts wrote:Setpoint is a temperature wich is set when pressed? Not the current temperature?
No problem...robgeerts wrote:Could you post the complete output of your domoticz? (Or at least every party wich has to do with Toon...
Code: Select all
{
"ActTime" : 1491237688,
"ServerTime" : "2017-04-03 18:41:28",
"Sunrise" : "07:14",
"Sunset" : "20:17",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "20.2 C",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 7,
"HardwareName" : "Toon Thermostaat",
"HardwareType" : "Toon Thermostat",
"HardwareTypeVal" : 34,
"HaveTimeout" : false,
"ID" : "0001",
"LastUpdate" : "2017-04-03 18:40:43",
"Name" : "Kamertemperatuur",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "LaCrosse TX3",
"Temp" : 20.199999999999999,
"Timers" : "false",
"Type" : "Temp",
"TypeImg" : "temperature",
"Unit" : 1,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "36"
},
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "12.0",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 7,
"HardwareName" : "Toon Thermostaat",
"HardwareType" : "Toon Thermostat",
"HardwareTypeVal" : 34,
"HaveTimeout" : false,
"ID" : "0000001",
"LastUpdate" : "2017-04-03 18:40:43",
"Name" : "Thermostaatinstelling",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"SetPoint" : "12.0",
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "SetPoint",
"Timers" : "false",
"Type" : "Thermostat",
"TypeImg" : "override_mini",
"Unit" : 0,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "35"
},
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Off",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 7,
"HardwareName" : "Toon Thermostaat",
"HardwareType" : "Toon Thermostat",
"HardwareTypeVal" : 34,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "0000071",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2017-04-03 18:35:42",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 15,
"Name" : "HeatingOn",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "On/Off",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "lightbulb",
"Unit" : 1,
"Used" : 0,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "278"
},
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Off",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 7,
"HardwareName" : "Toon Thermostaat",
"HardwareType" : "Toon Thermostat",
"HardwareTypeVal" : 34,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "0000072",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2017-04-03 18:35:42",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 15,
"Name" : "TapwaterOn",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "On/Off",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "lightbulb",
"Unit" : 1,
"Used" : 0,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "279"
},
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Off",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 7,
"HardwareName" : "Toon Thermostaat",
"HardwareType" : "Toon Thermostat",
"HardwareTypeVal" : 34,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "0000073",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2017-04-03 18:35:42",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 15,
"Name" : "PreheatOn",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "On/Off",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "lightbulb",
"Unit" : 1,
"Used" : 0,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "280"
},
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Counter" : "3129.388",
"CounterDeliv" : "0.000",
"CounterDelivToday" : "0.000 kWh",
"CounterToday" : "0.014 kWh",
"CustomImage" : 0,
"Data" : "1934116;1195272;0;0;157;0",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 7,
"HardwareName" : "Toon Thermostaat",
"HardwareType" : "Toon Thermostat",
"HardwareTypeVal" : 34,
"HaveTimeout" : false,
"ID" : "1",
"LastUpdate" : "2017-04-03 18:40:43",
"Name" : "Unknown",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "Energy",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "P1 Smart Meter",
"TypeImg" : "counter",
"Unit" : 1,
"Usage" : "157 Watt",
"UsageDeliv" : "0 Watt",
"Used" : 0,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "281"
},
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Counter" : "844.029",
"CounterToday" : "0.000 m3",
"CustomImage" : 0,
"Data" : "844.029",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 7,
"HardwareName" : "Toon Thermostaat",
"HardwareType" : "Toon Thermostat",
"HardwareTypeVal" : 34,
"HaveTimeout" : false,
"ID" : "1",
"LastUpdate" : "2017-04-03 18:40:43",
"Name" : "Unknown",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "Gas",
"SwitchTypeVal" : 1,
"Timers" : "false",
"Type" : "P1 Smart Meter",
"TypeImg" : "counter",
"Unit" : 2,
"Used" : 0,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "282"
}
],
"status" : "OK",
"title" : "Devices"
}
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Counter" : "385.790 m3",
"CounterToday" : "0.040 m3",
"CustomImage" : 0,
"Data" : "385.790 m3",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 2,
"HardwareName" : "Dummy",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveTimeout" : false,
"ID" : "1421E",
"LastUpdate" : "2017-04-03 19:40:09",
"Name" : "Stadsverw. energie",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "RFXMeter counter",
"SwitchTypeVal" : 1,
"Timers" : "false",
"Type" : "RFXMeter",
"TypeImg" : "counter",
"Unit" : 1,
"Used" : 1,
"ValueQuantity" : "",
"ValueUnits" : "",
"XOffset" : "0",
"YOffset" : "0",
"idx" : "463"
},
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "75.1 C",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 2,
"HardwareName" : "Dummy",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveTimeout" : false,
"ID" : "1426A",
"LastUpdate" : "2017-04-03 19:40:08",
"Name" : "Stadverwarming temperatuur in",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "THR128/138, THC138",
"Temp" : 75.129999999999995,
"Timers" : "false",
"Type" : "Temp",
"TypeImg" : "temperature",
"Unit" : 1,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "539"
},
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "74.7 C",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 2,
"HardwareName" : "Dummy",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveTimeout" : false,
"ID" : "1426B",
"LastUpdate" : "2017-04-03 19:40:08",
"Name" : "Stadsverwarming temperatuur uit",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "THR128/138, THC138",
"Temp" : 74.730000000000004,
"Timers" : "false",
"Type" : "Temp",
"TypeImg" : "temperature",
"Unit" : 1,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "540"
},
I will buy you a beer!Dynamic wrote:How can I activate a scene? My 'favorite' scenes are visible, but when I click them, nothing happens. Or is it designed for groups only?
Edit: I found something. When you activate a scene/group, it does:
/json.htm?type=command¶m=switchlight&idx=1&switchcmd=On&level=0&passcode=
But it should be:
/json.htm?type=command¶m=switchscene&idx=1&switchcmd=On&passcode=
How can I fix this?
Edit 2: got it. In main.js you have to change this line:
else if(data.result[r]['Type']=='Group'){
info:
else if(data.result[r]['Type']=='Scene'){
Take your time...robgeerts wrote:Ok, will look into this asap!
A very cheap wall mount, just 13,99 euro!HansieNL wrote:@Dynamic:
What did you use to fix it to the wall?
Looking good. No iPad here. Just some smallish Galaxy TabsDynamic wrote:Your dashboard is really awesome! Today I mounted an iPad to the wall to show all those cool things.
You dont need the entryTemplate part..Ierlandfan wrote:I figured I would use the traffic.js as template to show a camera.
The popup part works since that's a simple replace of the htmlpage it opens
For the camera part, I am not sure where to put in the img src. I think I have to substitute some part in the the "entryTemplate"
Or do I have to insert it in the part further above?
Thanks!Dynamic wrote:Your dashboard is really awesome! Today I mounted an iPad to the wall to show all those cool things.
Added in the lastest version in Gitlab!Dynamic wrote: I have some devices that I would like to add (like the usage of my 'city heating' ). Here is the JSON-output:
Cityheating:Temperature sensors:Code: Select all
{ "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, "AddjValue2" : 0.0, "BatteryLevel" : 255, "Counter" : "385.790 m3", "CounterToday" : "0.040 m3", ------ "idx" : "463" },
Code: Select all
{ "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, ------ "idx" : "539" }, { "AddjMulti" : 1.0, "AddjMulti2" : 1.0, ------- "Used" : 1, "XOffset" : "0", "YOffset" : "0", "idx" : "540" },
Try, in CONFIG.js:Dynamic wrote: And what is the easiest way to add a shortcut to Domoticz in the dashboard?
Code: Select all
var buttons = {}
buttons.radio = {image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nunl = {icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://www.nu.nl'}
buttons.radar = {icon: 'fa-cloud', title: 'Radar', url: 'http://www.weer.nl/verwachting/nederland/son/189656/'}
buttons.nzbget = {icon: 'fa-download', title: 'NZBget', url: 'http://192.168.1.3:6789'}
Thanks, fixed in latest version!Dynamic wrote: I'm also not able to switch scenes (I don't use groups). I mentioned that before:Dynamic wrote:How can I activate a scene? My 'favorite' scenes are visible, but when I click them, nothing happens. Or is it designed for groups only?
Edit: I found something. When you activate a scene/group, it does:
/json.htm?type=command¶m=switchlight&idx=1&switchcmd=On&level=0&passcode=
But it should be:
/json.htm?type=command¶m=switchscene&idx=1&switchcmd=On&passcode=
How can I fix this?
Edit 2: got it. In main.js you have to change this line:
else if(data.result[r]['Type']=='Group'){
info:
else if(data.result[r]['Type']=='Scene'){
Thanks!Dynamic wrote: I will buy you a beer!
Could you test with the latest version if the setpoint-buttons are working?EdKo66 wrote:Great. Looking forward to it.
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Open",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 9,
"HardwareName" : "RFLink",
"HardwareType" : "RFLink Gateway USB",
"HardwareTypeVal" : 46,
"HaveDimmer" : false,
"HaveGroupCmd" : false,
"HaveTimeout" : false,
"ID" : "244CC400",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2017-04-04 06:45:10",
"Level" : 99,
"LevelInt" : 99,
"MaxDimLevel" : 100,
"Name" : "Living Room Blind 1",
"Notifications" : "false",
"PlanID" : "6",
"PlanIDs" : [ 6, 10 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Open",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Dooya",
"SwitchType" : "Venetian Blinds EU",
"SwitchTypeVal" : 15,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "blinds",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "86"
},
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "12.0",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 5,
"HardwareName" : "Neohub",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveTimeout" : false,
"ID" : "00140B7",
"LastUpdate" : "2017-04-04 11:48:04",
"Name" : "Bathroom",
"Notifications" : "false",
"PlanID" : "9",
"PlanIDs" : [ 9, 10 ],
"Protected" : false,
"SetPoint" : "18.0",
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "SetPoint",
"Timers" : "false",
"Type" : "Thermostat",
"TypeImg" : "override_mini",
"Unit" : 1,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "104"
}
I've tested the Toon Thermostat setpoint, but don't see anything happenrobgeerts wrote:Could you test with the latest version if the setpoint-buttons are working?EdKo66 wrote:Great. Looking forward to it.
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Off",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 7,
"HardwareName" : "Toon Thermostaat",
"HardwareType" : "Toon Thermostat",
"HardwareTypeVal" : 34,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "0000010",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2017-04-04 03:14:40",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 15,
"Name" : "Schemerlamp",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "On/Off",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "lightbulb",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "168"
},
Code: Select all
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CounterToday" : "22.998 kWh",
"CustomImage" : 0,
"Data" : "11050.739 kWh",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 17,
"HardwareName" : "MySensors Gateway",
"HardwareType" : "MySensors Gateway USB",
"HardwareTypeVal" : 41,
"HaveTimeout" : false,
"ID" : "00000201",
"LastUpdate" : "2017-04-04 09:37:55",
"Name" : "kWh",
"Notifications" : "false",
"Options" : "",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "kWh",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "General",
"TypeImg" : "current",
"Unit" : 1,
"Usage" : "311.0 Watt",
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "100"
Code: Select all
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 10.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "1.1 C, 89 %",
"Description" : "",
"DewPoint" : "-0.51",
"Favorite" : 1,
"HardwareID" : 14,
"HardwareName" : "Virtual",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveTimeout" : false,
"Humidity" : 89,
"HumidityStatus" : "Normal",
"ID" : "140F2",
"LastUpdate" : "2017-04-04 09:37:50",
"Name" : "Ulkolämpötila",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "THGN122/123, THGN132, THGR122/228/238/268",
"Temp" : 1.1000000000000001,
"Timers" : "false",
"Type" : "Temp + Humidity",
"TypeImg" : "temperature",
"Unit" : 1,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "162"