TECH7Fox / sip-hass-card

A SIP client inside home assistant!
MIT License
179 stars 38 forks source link

Mini Card (Feature Request) #101

Open efaden opened 1 year ago

efaden commented 1 year ago

So like many people I am trying use this to replicate an intercom in my house. I have a bunch of tablets throughout my house that have a regular display with a bunch of buttons. The sip card is nice, but too large to put onto my main tab, but when on a separate tab it doesn't always load/register. I have tried using browser-mod, etc, but nothing really works correctly. So my thought is to make the main rendering a mushroom chip style card or something along those lines. Since the card itself would be loading it would be possible to load jssip and register with asterisk. When you click on button popup a browser-mod style popup (ha-dialog) that has the current stuff in it (call buttons, etc).

Thoughts on this idea? I forked the project to start playing around with as I have time, but I am curious what others think about this idea.

efaden commented 1 year ago

Look at: https://github.com/thomasloven/hass-browser_mod/blob/master/js/plugin/popups.ts

for an example of ha-dialog in use.

efaden commented 1 year ago

Alternatively could do something like kiosk mode and "inject" the code into the header. That way you could load the client regardless of the page. Think of it this way, the settings would be done on the dashboard level itself.

sip:
  enabled: true
  extension: 200
  name: My NAme
  secret: My Secret

kiosk_mode:

views: 
  ....

Think about automatically inserting the button into the header on the far right or something with a telephone icon. When clicked on would popup the current card. Since it is loading in the header though should be able to stay registered.