my latest blocks show the prescence of myself and my wife, these are dummy switches activated normally via geofencing, and all is well on the Domoticz front.
The issue is that these blocks (have also tried substituting other switches) do not show up on the Dashticz screen UNLESS I change the state of the corresponding switch in Domoticz.
Once it shows up in Dashticz, it functions as one would expect, but then disappears if I refresh the Dashticz browser page, but will reappear if I change the switch state again.
The logic level doesn't matter it is the change in state which "allows" the Dashticz block to become visiable.
Screenshots and my messy config enclosed
Help?
Code: Select all
var config = {}
config['domoticz_ip'] = 'http://192.168.1.13:8080';
config['app_title'] = 'Dashticz V3.7';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['login_timeout'] = '60';
config['user_name'] = '';
config['pass_word'] = '';
config['domoticz_timeout'] = '5000';
config['room_plan'] = '0';
config['colorpicker'] = '2';
config['default_news_url'] = 'http://feeds.bbci.co.uk/news/england/rss.xml#';
config['news_scroll_after'] = '7';
config['default_cors_url'] = '';
config['dashticz_php_path'] = './vendor/dashticz/';
config['standby_call_url'] = '';
config['standby_call_url_on_end'] = '';
config['theme'] = 'default';
config['background_image'] = 'img/bg14.jpg';
config['standby_after'] = '0';
config['start_page'] = '1';
config['enable_swiper'] = '2';
config['vertical_scroll'] = '2';
config['auto_swipe_back_to'] = '1';
config['auto_swipe_back_after'] = '10';
config['auto_slide_pages'] = '';
config['slide_effect'] = 'slide';
config['standard_graph'] = 'hours';
config['blink_color'] = '255, 255, 255, 1';
config['language'] = 'en_US';
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'en_US';
config['calendarurl'] = '';
config['boss_stationclock'] = 'RedBoss';
config['gm_api'] = '';
config['gm_zoomlevel'] = '';
config['gm_latitude'] = '';
config['gm_longitude'] = '';
config['speak_lang'] = '';
config['wu_api'] = '';
config['wu_city'] = 'London';
config['wu_name'] = '';
config['wu_country'] = 'GB';
config['owm_api'] = '';
config['owm_city'] = 'Mainaschaff';
config['owm_name'] = '';
config['owm_country'] = 'gb';
config['owm_lang'] = '';
config['owm_cnt'] = '4';
config['idx_moonpicture'] = '';
config['longfonds_zipcode'] = '';
config['longfonds_housenumber'] = '';
config['switch_horizon'] = '';
config['host_nzbget'] = '';
config['spot_clientid'] = '';
config['sonarr_url'] = '';
config['sonarr_apikey'] = '';
config['sonarr_maxitems'] = '';
config['garbage_company'] = '';
config['garbage_icalurl'] = '';
config['google_api_key'] = '';
config['garbage_calendar_id'] = '';
config['garbage_zipcode'] = '';
config['garbage_street'] = '';
config['garbage_housenumber'] = '';
config['garbage_housenumberadd'] = '';
config['garbage_maxitems'] = '';
config['garbage_width'] = '';
config['setpoint_min'] = '5';
config['setpoint_max'] = '40';
config['evohome_boost_zone'] = '60';
config['evohome_boost_hw'] = '15';
config['disable_update_check'] = 0;
config['loginEnabled'] = 0;
config['enable_websocket'] = 1;
config['auto_positioning'] = 0;
config['use_favorites'] = 1;
config['last_update'] = 1;
config['disable_googleanalytics'] = 0;
config['hide_topbar'] = 0;
config['swiper_touch_move'] = 1;
config['security_button_icons'] = 0;
config['security_panel_lock'] = 0;
config['edit_mode'] = 0;
config['hide_seconds'] = 0;
config['hide_seconds_stationclock'] = 0;
config['owm_days'] = 0;
config['owm_min'] = 0;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 0;
config['translate_windspeed'] = 1;
config['static_weathericons'] = 0;
config['hide_mediaplayer'] = 0;
config['garbage_hideicon'] = 0;
config['garbage_icon_use_colors'] = 1;
config['garbage_use_colors'] = 0;
config['garbage_use_names'] = 0;
config['garbage_use_cors_prefix'] = 1;
_DECIMAL_POINT = '.';
_THOUSAND_SEPARATOR = ',';
// REMOVE THIS LINE, INCLUDING THIS TEXT IF YOU WANT TO USE THE CODE BELOW, ALS REMOVE THE LAST LINE OF THIS FILE ( the asterisk * with the slash)
/*
var publictransport = {}
publictransport.ovinfobus = { show_via: false, station: 'son-en-breugel/bushalte-penseelkever', provider: '9292-bus', icon: 'bus', width:5, results: 6 }
var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fas fa-tv', width:7, channels: [1,3,4,31,46,92], maxitems: 5 }
var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3"},
{"track":2,"name":"538 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
{"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
{"track":4,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
];
var buttons = {}
buttons.nunl = {key: 'nunl', width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.nos = {key: 'nos', width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}
var blocks = {}
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['key'] = 'blocktitle_1';
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Example';
var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']
columns[1] = {}
columns[1]['blocks'] = ['currentweather_big','weather']
columns[1]['width'] = 5;
columns[2] = {}
columns[2]['blocks'] = ['blocktitle_1',tvguide.dutch,publictransport.ovinfobus]
columns[2]['width'] = 5;
columns[3] = {}
columns[3]['blocks'] = ['sunrise','streamplayer',buttons.nunl,buttons.nos]
columns[3]['width'] = 2;
var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','weather']
columns_standby[1]['width'] = 12;
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg2.jpg';
screens[1]['columns'] = [1,2,3]
*/
var blocks = {}
blocks[424] = {
width: 2, //1 to 12, remove this line if you want to use the default (4)
title : 'Thermostat', //if you want change the name of switch different then domoticz
flash:5000,
last_update:false,
color: "#57c4d6",
type : 'dial',
min: 10, // set the minimum value for the dial range (default is 5)
max: 25, // set the maximum value for the dial range (default is 35)
shownumbers: true, // display the numbers on the dial (default is false)
showring: true, // display outer ring color all the time (default is false, will only display when hover over)
showunit: true, // display unit for the dial value (default is false)
//Type ='Heating',
};
blocks[427] = {
width: 4, //1 to 12, remove this line if you want to use the default (4)
title : 'Water Temp', //if you want change the name of switch different then domoticz
flash:5000,
last_update:false,
color: "#57c4d6",
type : 'dial',
min: 10, // set the minimum value for the dial range (default is 5)
max: 65, // set the maximum value for the dial range (default is 35)
shownumbers: true, // display the numbers on the dial (default is false)
showring: true, // display outer ring color all the time (default is false, will only display when hover over)
showunit: true, // display unit for the dial value (default is false)
};
blocks[625] = {
width: 4, //1 to 12, remove this line if you want to use the default (4)
title : 'Wind', //if you want change the name of switch different then domoticz
flash:5000,
last_update:false,
color: "#57c4d6",
type : 'dial',
// min: 10, // set the minimum value for the dial range (default is 5)
// max: 65, // set the maximum value for the dial range (default is 35)
shownumbers: true, // display the numbers on the dial (default is false)
showring: true, // display outer ring color all the time (default is false, will only display when hover over)
showunit: true, // display unit for the dial value (default is false)
};
blocks[568] = {
width: 2, //1 to 12, remove this line if you want to use the default (4)
title : 'Heating', //if you want change the name of switch different then domoticz
last_update:false,
type : 'dial',
color: "#57c4d6",
};
blocks[422] = {
width: 2, //1 to 12, remove this line if you want to use the default (4)
title : 'Living Room Temperature', //if you want change the name of switch different then domoticz
flash:5000,
last_update:false,
};
blocks['597_1'] = {
width: 2, //1 to 12, remove this line if you want to use the default (4)
title : 'Bed Room Temperature', //if you want change the name of switch different then domoticz
flash:5000,
last_update:false,
};
blocks[597] = {
width: 2, //1 to 12, remove this line if you want to use the default (4)
title : 'Bed Room', //if you want change the name of switch different then domoticz
flash:5000,
last_update:false,
type : 'dial',
color: "#57c4d6",
shownumbers: true, // display the numbers on the dial (default is false)
showring: true, // display outer ring color all the time (default is false, will only display when hover over)
showunit: true // display unit for the dial value (default is false)
};
blocks[596] = {
width: 2, //1 to 12, remove this line if you want to use the default (4)
title : 'Living Room', //if you want change the name of switch different then domoticz
flash:5000,
last_update:false,
type : 'dial',
color: "#57c4d6",
shownumbers: true, // display the numbers on the dial (default is false)
showring: true, // display outer ring color all the time (default is false, will only display when hover over)
showunit: true // display unit for the dial value (default is false)
};
blocks['476_0'] = {//476
//width: 4, //1 to 12, remove this line if you want to use the default (4)
title : 'Power', //if you want change the name of switch different then domoticz
//last_update:false,
type : 'dial',
//color: "#57c4d6",
// min: 100, // set the minimum value for the dial range (default is 5)
//max: 10000, // set the maximum value for the dial range (default is 35)
//shownumbers: true, // display the numbers on the dial (default is false)
// showring: true, // display outer ring color all the time (default is false, will only display when hover over)
// showunit: true // display unit for the dial value (default is false)
};
blocks['597_2'] = {
width: 2, //1 to 12, remove this line if you want to use the default (4)
title : 'Bed Room Humidity', //if you want change the name of switch different then domoticz
flash:5000,
last_update:false,
};
blocks['596_2'] = {
width: 2, //1 to 12, remove this line if you want to use the default (4)
title : 'Living Room Humidity', //if you want change the name of switch different then domoticz
flash:5000,
last_update:false,
};
blocks[439] = {
width: 4, //1 to 12, remove this line if you want to use the default (4)
title : 'Outside Temp', //if you want change the name of switch different then domoticz
flash:5000,
last_update:false,
min: -10, // set the minimum value for the dial range (default is 5)
max: 40, // set the maximum value for the dial range (default is 35)
type : 'dial',
color: "#57c4d6",
shownumbers: true, // display the numbers on the dial (default is false)
showring: true, // display outer ring color all the time (default is false, will only display when hover over)
showunit: true // display unit for the dial value (default is false)
};
blocks[33] = {
width: 4, //1 to 12, remove this line if you want to use the default (4)
title : 'Oil Tank', //if you want change the name of switch different then domoticz
flash:5000,
last_update:false,
min: -100, // set the minimum value for the dial range (default is 5)
max: 1250, // set the maximum value for the dial range (default is 35)
type : 'dial',
color: "#57c4d6",
shownumbers: true, // display the numbers on the dial (default is false)
showring: true, // display outer ring color all the time (default is false, will only display when hover over)
showunit: true // display unit for the dial value (default is false)
};
blocks[4] = {
width: 4, //1 to 12, remove this line if you want to use the default (4)
title : 'Dehumidifier', //if you want change the name of switch different then domoticz
flash:5000,
type : 'dial',
color: "#57c4d6",
last_update:false,
};
blocks['s2'] = {
width: 4, //1 to 12, remove this line if you want to use the default (4)
title : 'Hot Water', //if you want change the name of switch different then domoticz
flash:5000,
type : 'dial',
color: "#57c4d6",
last_update:false,
};
blocks['s3'] = {
width: 4, //1 to 12, remove this line if you want to use the default (4)
title : 'Living Lights', //if you want change the name of switch different then domoticz
flash:5000,
type : 'dial',
color: "#57c4d6",
last_update:false,
};
blocks[421] = {
width: 4, //1 to 12, remove this line if you want to use the default (4)
title : 'Heating Boost', //if you want change the name of switch different then domoticz
flash:5000,
type : 'dial',
color: "#57c4d6",
last_update:false,
};
blocks[6] = {
width: 4, //1 to 12, remove this line if you want to use the default (4)
title : 'Nigel', //if you want change the name of switch different then domoticz
flash:5000,
//type : 'dial',
color: "#57c4d6",
last_update:false,
};
blocks[410] = {// emma at home
width: 4, //1 to 12, remove this line if you want to use the default (4)
title : 'Emma', //if you want change the name of switch different then domoticz
flash:5000,
//type : 'dial',
color: "#57c4d6",
last_update:false,
};
blocks['graph_476'] = {
width: 4, //1 to 12, remove this line if you want to use the default (4)
title : 'Power', //if you want change the name of switch different then domoticz
height :'120px',
last_update:false,
};
blocks['Hot_Water'] = { // Hot Water Combined block dial
type: 'dial',
width: 1,
min: 10,
max: 60,
values : [
{
value: 'Temp',
idx: 427,
unit: 'C'
},
{
value: 'ON/OFF',
idx: 's3',
icon: 'fas fa-cloud',
},
]
}
buttons = {} //only once!!
buttons.Workshop = {width:12, isimage:true, forceheight:'200px', image: 'Outside-20210121-1142294784.jpg', url: 'http://Domoticz:@192.168.1.31/tmpfs/auto.jpg'}
buttons.radio = {width:2, image: 'radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
// http://192.168.1.30/tmpfs/auto.jpg?1611159497347
// https://calendar.google.com/calendar/u/0?cid=bmlnZWwud3lib3JuQGdvb2dsZW1haWwuY29t
blocks['NW_calendar'] = {
type: 'calendar',
maxitems: 6,
layout: 1,
url: 'https://calendar.google.com/calendar/embed?src=nigel.wyborn%40googlemail.com&ctz=Europe%2FLondon',
icalurl: 'https://calendar.google.com/calendar/ical/nigel.wyborn%40googlemail.com/private-b6d561dd3cbf839abaca4d9c6bc84610/basic.ics',
holidayurl: 'https://www.calendarlabs.com/ical-calendar/ics/75/UK_Holidays.ics',
weeks: 5,
lastweek: false,
isoweek: false,
width: 3,
method: 1
}
blocks['EW_calendar'] = {
type: 'calendar',
maxitems: 6,
layout: 1,
url: 'https://calendar.google.com/calendar/embed?src=emma.wyborn%40gmail.com&ctz=Europe%2FLondon',
icalurl: 'https://calendar.google.com/calendar/ical/emma.wyborn%40gmail.com/private-5bfa2f53f0ed15618e0ca608c106b53d/basic.ics',
holidayurl: 'https://www.calendarlabs.com/ical-calendar/ics/75/UK_Holidays.ics',
weeks: 5,
lastweek: false,
isoweek: false,
width: 3,
method: 1
}
blocks['garage_cam'] = {
type: 'camera',
imageUrl: 'http://Domoticz:@192.168.1.31/tmpfs/auto.jpg',
videoUrl: 'http://Domoticz:@192.168.1.31/tmpfs/auto.jpg',
refresh: 5,
width: 2,
height: 125
}
blocks['Workshop_cam'] = {
type: 'camera',
imageUrl: 'http://Domoticz:@192.168.1.30/tmpfs/auto.jpg',
videoUrl: 'http://Domoticz:@192.168.1.30/tmpfs/auto.jpg',
refresh: 5,
width: 2,
height: 125
}
/*
blocks["cameras"] = {
type: "camera",
width: 2,
height: 150,
refresh: 5,
traytimeout: 3,
slidedelay: 5,
cameras: [
{
title: "Drive",
imageUrl: "http://Domoticz:@192.168.1.31/tmpfs/auto.jpg",
videoUrl: "http://Domoticz:@192.168.1.31/tmpfs/auto.jpg",
},
{
title: "Workshop",
imageUrl: "http://Domoticz:@192.168.1.30/tmpfs/auto.jpg",
videoUrl: "http://Domoticz:@192.168.1.30/tmpfs/auto.jpg",
},
],
}
*/
// weather block
//Configuring the OWM parameters
config['owm_api'] = '7b6d4242c95ce2b90bf6acb0c0d9bd74';
config['owm_city'] = 'Terrington St Clement';
config['owm_name'] = 'Clenchwarton';
config['owm_country'] = 'GB';
config['owm_lang'] = 'en_US';
config['owm_cnt'] = '5';
config['owm_min'] = true;
config['owm_days'] = false;
var columns = {} //This line only once!!
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']
columns[1] = {
blocks: [424,568,597,596,'garage_cam','Workshop_cam','graph_476']
}
columns[2] = {
blocks: []
}
//Adding OWM to a column
columns[2] = {}
columns[2]['blocks'] = ['currentweather_big_owm','weather_owm']
columns[2]['width'] = 4;
columns[3] = {
blocks: ['s2','s3',421]
}
columns[3]['width'] = 4;
columns[4] = {
// blocks: ['buttons.Workshop','buttons.radio'],
blocks: [427,439,625,33],//476
}
columns[4]['width'] = 4;
columns[5] = {
blocks: [6,410],
}
columns[5]['width'] = 4;
columns[6] = {
blocks: ['NW_calendar']
}
columns[6]['width'] = 12;
columns[7] = {
blocks: ['EW_calendar']
}
columns[7]['width'] = 12;
var screens = {}
screens[1] = {}
screens[1]['columns'] = [1,3,4,2,5,6,7]