I have tried:
<button type="button" class="btn btn-default" onclick="PressButton(config['aircooudersaankoelen'])" id="aircoouders-control">Cool 21</button>
No results when i press button. strange thing happens.
button then changes to
Koffienl's tablet guide: Fully customizable HTML GUI for Pimatic
I have tried:
<button type="button" class="btn btn-default" onclick="PressButton(config['aircooudersaankoelen'])" id="aircoouders-control">Cool 21</button>
No results when i press button. strange thing happens.
button then changes to
Hi guys,
still trying to make this work. Buttonsdevice in gui.
Didnt have any result on the above help.
I can make dummy buttons for each command with rules but i just cant stand the fact that the buttonsdevice should work in gui Hope anyone has a positive result in getting the buttonsdevice in the gui. Thanks for any replies.
Hi all,
I have the same problem, i want to dim my dimmer in the livingroom, I have create 5 Buttondevice with different dimlevel.
But now i want a button in my html page, but it doesnt work for me,
<div class="col-sm-1 col-md-2">
<div class="thumbnail tile tile-wide uibutton" onclick="PressButton(config['25'])" d="dimlevel"> <i class="fa fa-3x fa-sliders"></i>
<h3 class="tile-text">25%</h3>
<div class="clearfix">
</div>
</div>
</div>
@dvanwerkhoven well, you have a typo…
You have d="dimlevel"
Should be id="dimlevel"
Well, i finally had time to check this issue out. I have seen someone giving an example;
onclick="PressButton(config['Open])" id="rolluik-fenna">
After looking through the pimatic-socket.js file, there is no PressButtom function… could you please clarify why this should work @incmve ?
So, what can we do about it? Well, create the function.
Lets look at the normal function to TOGGLE, found in the /js/pimatic-socket.js file;
function toggleDevice(device)
{
socket.emit('call', {
id: 'executeAction-1',
action: 'executeAction',
params: {
actionString: 'toggle ' + device
}
});
}
In particulair;
actionString: 'toggle ' + device
This line toggle’s the given id in the index.html.
To use this for a button, simply add this under that function as a new function;
function pressButton(device)
{
socket.emit('call', {
id: 'executeAction-1',
action: 'executeAction',
params: {
actionString: 'press ' + device
}
});
}
As you can see, the function is “pressButton” and the actionString now does a press event instead of a toggle event.
Now, to the fun (and working) part, this is how you press a button;
<div class="thumbnail tile tile-medium tile-red uibutton" onclick="pressButton('spotjes25')" id="spotjes25">
Both values are the ID for the button, not the device.
In this case; device is spotjes-schakelaar and had 3 buttons, spotjes25 spotjes 50 and spotjes75.
Let me know if this works
@gleno0h hi thanks, i have create the pressButton in the pimatic.js
And in my html file is used this
<div class=“thumbnail tile tile-wide uibutton” onclick=“pressButton(‘dimlevel’)” id=“dimlevel”>
But my Buttondevice id = dimlevel with the buttons 0, 25, 50, 75 and 100
where in the code can i define which button i use ?
@gleno0h i have tried the next one, and that works fine !!
<div class=“thumbnail tile tile-wide uibutton” onclick=“pressButton(‘75’)” id=“dimlevel”>
@dvanwerkhoven great
@gleno0h you are correct, pressButton is not in the github version.
Follow my domotica project on http://maredana.nl
It is possible to have more than one “nest-page”?
I have missed your post Dont know why. But! It works great! Thanks for the help. I can now delete my dummy buttons that i’ve created for this to work.
Thanks again!
@tehmilcho said in Koffienl's tablet guide: Fully customizable HTML GUI for Pimatic:
It is possible to have more than one “nest-page”?
Sorry , haven’t implemented anything close that. If you want one extra you should try for yourself
Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm
Yep, i get it to work with just addn to all “_room”, than you have to hole Code double but thats okay.!
And i added a Query Overlay for it, because i dont want it on a extra Site. It looks at the moment like this
Hi ! I have a minnor prob. The nest thermostat is working ok, set point changes ok and heat turns on and off, but i have to refresh the page for the flame to show up.
Also i have a request : How to add a logout button ?