Page 3 of 10

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Tuesday 14 July 2020 20:14
by madpatrick
Hi,

Great feature.
I'm trying to setup the switch for my groups
The dial is showing as a dial needle and not as a on/off button

Code: Select all

blocks['s2'] = {
  title: 'Woonkamer',
  type: 'dial',
  color: '#57c4d6',
  width: 3
};
And if a add " idx: 2" then no dial appears

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Tuesday 14 July 2020 20:18
by clinkadink
Is the "Switch Type" set to "On/Off" in Domoticz?

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Tuesday 14 July 2020 20:27
by madpatrick
As far as i can see it is set as on/off

Image


When i press the button in the "Groups" section it works
Image

If i press the buton in "Setting/devices" the lights doesn't switch on/off
(this is only with the Machinon theme, other themes work)
Image
But the dial won't work, despite the theme selection

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Tuesday 14 July 2020 21:44
by clinkadink
madpatrick wrote: Tuesday 14 July 2020 20:27 If i press the buton in "Setting/devices" the lights doesn't switch on/off
(this is only with the Machinon theme, other themes work)
But the dial won't work, despite the theme selection
I have just enabled Machinon theme in my Domoticz, and tested dials in Dashticz and have no issues. Which is what I would expect, as Machinon is a CSS theme for Domoticz and would not interfere with the Dashticz dial.

If you click the 3 dots above your switch in Domoticz, you can see what the "Switch Type" is. To use the Dial "Switch", it must be set to "On/Off" in Domoticz.

Image

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Tuesday 14 July 2020 21:47
by madpatrick
Correct. The switches are working, but not the groups

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Tuesday 14 July 2020 21:59
by clinkadink
I don't use groups, so i can't comment. I can't even see it in Domoticz. I can see you have Groups in your screenshot, but I don't. Where do you add them?

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Tuesday 14 July 2020 22:01
by madpatrick
I can add groups or scenes in that section.
To my knowledge this section is standard available and added manually

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Tuesday 14 July 2020 22:04
by Trigun
I have to admit, I have the same issue.
The nice on off buttons don’t appear.
I’ve checked, they’ve been set to on/off


Sent from my iPhone using Tapatalk

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Tuesday 14 July 2020 22:10
by clinkadink
Ok, so I have found how to "Add Group" .. it was on the Scenes tab, which was disabled on my Domoticz. I don't use Scenes and I definitely don't use Groups. I haven't got a clue how they work.

Do any of you have a device with Switch Type "On/Off" that is not in a group, that you can check for me?

I am guessing that the Group functionality allows you to turn on and off all switches at the same time. If that is true, then I can say now that the dial button does not do that. It targets the device directly.

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Tuesday 14 July 2020 22:14
by madpatrick
great.
The 4th switch is working. See the picture in my previous post

In the group there are several switches which you can turn on/off with 1 button.
In Setting/devices the group has een idx number and is clickable on/off
Image
only not responding the idx number with the dials

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Tuesday 14 July 2020 22:17
by madpatrick
Maybe this helps

https://www.domoticz.com/wiki/Domoticz_ ... .2F_Groups

for scenses/groups:
/json.htm?type=command&param=switchscene&idx=&switchcmd=

for switches:
/json.htm?type=command&param=switchlight&idx=99&switchcmd=Toggle

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Tuesday 14 July 2020 22:18
by clinkadink
OK, glad the dial button is working for a single device.

I have just added a group and 2 on/off switches to it. That gives me something to play with. I can now see there is little difference between switching a device on/off and switching a group on/off. It will be easy enough to accomodate this.

Code: Select all

/json.htm?type=command&param=switchlight&idx=99&switchcmd=On
/json.htm?type=command&param=switchscene&idx=&switchcmd=On

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Tuesday 14 July 2020 22:27
by Trigun
Is there actually a setting in the code I have to enter for normal switch? Or only the on/off setting in domoticz will be sufficient?


Sent from my iPhone using Tapatalk

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Wednesday 15 July 2020 0:36
by clinkadink
Ok, if you pull the latest beta - updated just now, and give it a try with groups. It seems to work fine for me, with 1 group and 2 on/off switches.

It uses the same "Idx" naming as the standard Dashticz switch, i.e. the idx is a string prefixed by "s". See below.

Code: Select all

blocks['group_button'] = {
  idx: 's1',
  title: 'Group',
  type: 'dial',
  color: '#57c4d6',
  width: 2
}
More info on group idx naming here: https://dashticz.readthedocs.io/en/beta ... parameters

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Wednesday 15 July 2020 8:50
by EdwinK
When using this:

Code: Select all

blocks['plafond'] = {
  idx: 's2',
  title: 'Plafond',
  type: 'dial',
  color: '#57c4d6',
  width: 2
}
There is no button/dail.

When using this:

Code: Select all

blocks['plafond'] = {
  idx: 285,
  title: 'Plafond',
  type: 'dial',
  color: '#57c4d6',
  width: 2
}
there is a button/dail

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Wednesday 15 July 2020 8:54
by EdwinK
's2' should have been 's8'

There is a button now, but it still doesn't work

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Wednesday 15 July 2020 9:48
by madpatrick
clinkadink wrote: Wednesday 15 July 2020 0:36 Ok, if you pull the latest beta - updated just now, and give it a try with groups. It seems to work fine for me, with 1 group and 2 on/off switches.

It uses the same "Idx" naming as the standard Dashticz switch, i.e. the idx is a string prefixed by "s". See below.

Code: Select all

blocks['group_button'] = {
  idx: 's1',
  title: 'Group',
  type: 'dial',
  color: '#57c4d6',
  width: 2
}
More info on group idx naming here: https://dashticz.readthedocs.io/en/beta ... parameters
Hi clinkadink

This is working.
The only point is that the text is too small on a tablet to read at a block width of 3
I've a 8" tablet, so the space is to not much ;-)
Is there a possibility to have the text under the dial ?

Or in a circle around the icon ?

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Wednesday 15 July 2020 10:46
by clinkadink
So it works for madpatrick but not for EdwinK.

@EdwinK - please check your config. Dial button for Groups works for me and madpatrick.
@madpatrick - I will have a look and see if anything can be done about the text under the dial.

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Wednesday 15 July 2020 12:17
by madpatrick
clinkadink wrote: Wednesday 15 July 2020 10:46 So it works for madpatrick but not for EdwinK.

@EdwinK - please check your config. Dial button for Groups works for me and madpatrick.
@madpatrick - I will have a look and see if anything can be done about the text under the dial.
Great.
I have some room under the dials if possible

Image

Re: Dashticz Dial - Features, Fixes & Updates

Posted: Wednesday 15 July 2020 12:26
by clinkadink
madpatrick wrote: Wednesday 15 July 2020 12:17 I have some room under the dials if possible
As a workaround for now, you can set a blank title in the block, and perhaps add a title block below. Just an idea?

Code: Select all

title: ' ',