This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Custom value 1 bit
#2
There's no direct way of doing this but it can be done with some custom JS and CSS.

This example uses custom additional class and 32/1/1 group address, change in both JS and CSS as needed.

JS:
Code:
$(function() {
  if (typeof grp === 'object') {
    grp.listen('32/1/1', function(obj) {
      setTimeout(function() {
        $('.custom .btn').text(obj.value ? 'Manual' : 'Auto');
      }, 1);
    });
  }
});

CSS:
Code:
.touch .custom .btn {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
Reply


Messages In This Thread
Custom value 1 bit - by Domoticatorino - 25.07.2019, 21:23
RE: Custom value 1 bit - by admin - 26.07.2019, 06:30
RE: Custom value 1 bit - by Domoticatorino - 26.07.2019, 11:14
RE: Custom value 1 bit - by Daniel - 26.07.2019, 11:23
RE: Custom value 1 bit - by Domoticatorino - 26.07.2019, 13:57
RE: Custom value 1 bit - by Daniel - 26.07.2019, 14:05
RE: Custom value 1 bit - by Domoticatorino - 26.07.2019, 14:07
RE: Custom value 1 bit - by Daniel - 26.07.2019, 14:11
RE: Custom value 1 bit - by Domoticatorino - 26.07.2019, 14:16
RE: Custom value 1 bit - by Daniel - 26.07.2019, 14:19
RE: Custom value 1 bit - by admin - 26.07.2019, 14:37
RE: Custom value 1 bit - by Domoticatorino - 26.07.2019, 14:52
RE: Custom value 1 bit - by admin - 26.07.2019, 15:16

Forum Jump: