Open AalianKhan opened 9 months ago
@DigiLive I want to create a function to create all the domain cards since I need it for the device card again. I tried adding it in mushroom-strategy.js but I was getting errors about it not being defined when I try to call it. When you have time, can you take a look?
You've created createDomainCards
as a method of class MushroomStrategy
, so you call it as this.createDomainCards()
, or if it's a static method as MushroomStrategy.createDomainCards()
.
I've attached an example of which you have to remove the .txt
extension:
mushroom-strategy.js.txt
Also, PR #81 is a massive change of the code base which is impossible to merge with the main
branch. Especially when other PR's change this branch a lot also.
I would appreciate it if you can wait for that PR to be reviewed and fully tested so it can be merged. After merging start implementing new features again.
btw... going to Browser Mod in the side bar, my console get spammed with manymanymany errors. I think it's related to https://github.com/thomasloven/hass-browser_mod/issues/652
Thank you very much. Sure I will wait for that PR. Mine works okay, hopefully gets fixed soon
I guess the errors have something to do with localization. Still a heavy integration for just a popup, though. But we'll see.
Thanks for waiting on my PR. I hope you can test and review it soon. Your help might also be needed to merge/force push.
[!WARNING] The
main
branch has been switched to TypeScript. Update your feature branch accordingly!
FYI... Maybe I've found a way to use just a part of browser mod.
If so, we can use it in this project directly without the user having to install browser mod. And it's more lightweight.
Oh nice, Can you send me more details?
Oh nice, Can you send me more details?
Yeah sure. But I have to play and find out a little myself first. 😅 Once I get a short sample running, you'll get to know it.
It takes a little longer. I've decided to create a card for Home Assistant myself to fit the requirements for this PR.
It's still gonna be a card which we can use in the code directly. So no need to require another HACS repo to be installed.
Whenever you finish with the popup, just shoot me a message. Thanks
Whenever you finish with the popup, just shoot me a message. Thanks
Yeah...
I've been quite busy lately. Planning to pick it up soon.
Add a device card. when enabled via device options, creates a device card in the room for the particular device and the tap action creates a popup to show entities linked to that device.
TODO:
entity_registry
,entity.entity_catagory == state
.card_options
.deviceCard
enabled.