@andrey
concerning: https://github.com/andrey-git/home-assistant-custom-ui#template-attributes .
Been trying to get this to work, but the given example won’t do it.
templates:
state: if state === 'on' return 'Active'; else return state;
just gives an empty space.
found this to be of effect:
templates:
state: if (state === 'home') return 'Active'; else return 'Alert!';
If correct for other instances, you might want to correct the instructions.
Wonderful job btw, im enjoying it better and more every single modification it enables.
Cheers,
Marius
andrey
(Andrey)
December 13, 2017, 4:32pm
2
I fixed the example. Thanks!
hate to bother you on this again, but could it be the latest update of custom ui broke this:
below customization worked fine before, as mentioned earlier, but now renders this again, please have a look:
device_tracker.iungo:
templates:
state: if (state === 'home') return 'Active'; else return 'Alert!';
device_tracker.timecapsule:
templates:
state: if (state === 'home') return 'Active'; else return 'Alert!';
device_tracker.solaredge:
templates:
state: if (state === 'home') return 'Active'; else return 'Alert!';
device_tracker.hassio:
templates:
state: if (state === 'home') return 'Active'; else return 'Alert!';
device_tracker.asus_router:
templates:
state: if (state === 'home') return 'Active'; else return 'Alert!';
device_tracker.hvbdiskstation:
templates:
state: if (state === 'home') return 'Active'; else return 'Alert!';
device_tracker.ikea_tradfri_hub:
templates:
state: if (state === 'home') return 'Active'; else return 'Alert!';
andrey
(Andrey)
December 16, 2017, 5:57am
4
There was a bug in 20171214 which was fixed in 20171215