Is there any way that a template could get the local IP address of the device on which a button is pressed? I’d like to be able to return it as service data in a tap_action service call. Thanks.
Thanks for the reply. Yes, that’s what I was looking for. Googling leads to some examples using WebRTC in HTML 5. Example here: http://net.ipcalf.com/ But, I guess that’s out of scope for use in a template?
I’m hoping to get the IP for use with a rest_command service call to the Fully Kiosk REST API as a tap_action. I noticed that the Fully Kiosk JavaScript interface has a call to get the private IP address as a string, simply:
fully.getIp4Address()
I’ll play around with that later to see if I can get it working in a template.
I went the route of defining a cover. The benefit is that where ever you use it, any card that is aware of state (like the custom button card) will probably automatically show the correct icon, which will lead to less duplication of templates and config.
Here is what I did for my rolling gate, but it’s the same for my two garage doors. I have a sensor that tells me whether it’s open or closed and a circuit that performs a “button press” connected to the door’s motor (including that in case you’re going the same way).
Thanks for the tip. I can confirm that works to launch a local Android app without also opening a new tab in Fully. That was my use case with for the res_command.
How do I customise the ripple effect so it follows the shape of the button? I have a button with a border-radius of 10px, but when the button is clicked the rippled effect goes outside the rounded corners and shows as a perfect rectangle with 90 degree corners. Thanks.
I have a button that looks like this, the fan icon on the side is only shown when its on, i would also like that it would spin, is it possible and in that case, how?
The code for the specific icon is this:
Love the custom button … need help to action a script. I cant seem to use the right syntax within the card to action a script . below is the yaml configuration