Open i00 opened 4 years ago
I have found a solution using the browser_mod
Don't forget to register your device in the left menu, then you have access to the hass object in the window
Example
<div onClick="window.browser_mod.hass.callService('browser_mod', 'more_info', { entity: 'sensor.cuve_meter'})">
your content
</div>
Hi ... just wondering if you could make it so you can call a HA service from js (maybe some more actions to)? e.g.
Thanks