Yes. I’ve been using this sensor for various things for quite some time. It’s just easier to remember sensor.denon_source in an automation than having to remember the full template.
I’ve sorted out the CSS part. Now I just need to figure out if it is possible to have a conditional satatement for the higherSize value. Would like it to be 2 for the mobile app and 4 for desktop.
For me it changed abitt cause the icons and card became mutch smaller then the original from earlier.
But fixed that with adding switch hight etc.
But a question. Are you using a ios based phone or Android?
Im having a problem that i realy need to hold down the button a long time for it to pop upp correcly. And thats that only buttom i have this problem with. Im starting to wonder if its the button cards code thats the problem. Sins allso the problem stayed after i tried your latest code.
This is what im using as of now.
- entity: sensor.harmony_activity
hideState: true
name: Media Vardagsrum
icon: mdi:television-guide
offIcon: mdi:power
offStates:
- PowerOff
popupExtend:
type: custom:switch-popup-card
icon: si:dolby
noActiveState: 'Off'
entity_value_path: state
switchHeight: 300px
switchWidth: 180px
entities:
- sensor.harmony_activity
buttons:
- icon: mdi:power
value: PowerOff
name: Power
service: script.turn_on
service_data:
entity_id: script.tvoff
- icon: mdi:apple
value: Apple tv
name: Apple TV
service: script.turn_on
service_data:
entity_id: script.apple_tv
- icon: si:playstation
value: Playstation
name: Playstation
service: script.turn_on
service_data:
entity_id: script.ps5
- icon: mdi:kodi
value: Htpc
name: Htpc
service: script.turn_on
service_data:
entity_id: script.htpc
- icon: mdi:television-guide
value: Tv
name: Tv
service: script.turn_on
service_data:
entity_id: script.tv
- entity: sensor.harmony_sovrum_activity
hideState: true
name: Media Vardagsrum
icon: mdi:television-guide
offIcon: mdi:power
offStates:
- PowerOff
popupExtend:
type: custom:switch-popup-card
icon: si:dolby
noActiveState: 'Off'
entity_value_path: state
switchHeight: 300px
switchWidth: 180px
entities:
- sensor.harmony_sovrum_activity
buttons:
- icon: mdi:power
value: PowerOff
name: Power
service: script.turn_on
service_data:
entity_id: script.tvoff
- icon: mdi:apple
value: Apple TV Sovrum
name: Apple TV Sovrum
service: script.turn_on
service_data:
entity_id: script.sovrumappletv
- icon: si:playstation
value: Playstation
name: Playstation
service: script.turn_on
service_data:
entity_id: script.pssovrum
- icon: mdi:television-guide
value: Tv Sovrum
name: Tv Sovrum
service: script.turn_on
service_data:
entity_id: script.tvsov
Definitly an Andriod house. I don’t have any Apple products. Putting tileHoldAnimation: true at the beginning of my configuration seemed to make it much easier to long press anything, along with adding a nice little animation.
I don’t use this design anymore (it’s a more than 2 year old post). But I used a horizontal stack inside a vertical stack. So the icon (custom button card) and markdown card inside a horizontal stack (which makes them be side by side). Then multiple of these stacks inside a vertical stack.
Thanks. I figured it was a button next to a markdown card. I’m just trying to get the CSS part working for the transparent markdown card. I can set --ha-card-background: rgba(0,0,0,0.0); but the normal card tile beneath is visible. I can’t seem to set it to be transparent without effecting all the other --tile-on-background or --tile-background
@DBuit For some reason light entities are not respecting the --tile-on-icon-color: #13485f;. It doesn’t seem to matter if I set useBrightness: to true or false. Config for the pendant light is below (other lights are similar).
I have a question about hold_action configuration. On iOS a long press triggers the associated action and haptic after a delay (500 ms. by default I think). This gives an intuitive visual and tactile feedback that you’ve held the button long enough and can release it. The lovelace deep_press module by roflcoopter has the same behavior. Is there a way to configure this on the Homekit style card? Whatever I try the action and haptic feedback always happen on button release. @DBuit If it’s not possible please consider this a feature request:-)
Is it possible to turn on home: true for only the companion app (mobile)? I’m using the sidebr card on desktop, and that info is repeated in the sidebar so I don’t need it. Any way to do this with a template?
sudocode:
All of my popups are full screen. Any idea how to change that? If I set fullscreen: false it moves the card to the top left but the dimmed background is still full screen. With fullscreen: true the card is centred.