Open WaywardWilderness opened 4 months ago
I believe that should work, although now I stop to think about it, all of the entities name themselves without anything specific, so it might do something unexpected.
I can try to debug this idea with my house, but you won't break anything by trying it, so if you want to try and let me know what happens let me know. I'm not sure if you can assign entity IDs once they are created by the integration or if the integration needs to do it, but I think suffixing them with the gateway_id won't be hard, it will just make them unwieldy.
The last option would be to add a nickname
optional key so that you can prefix/suffix the entities with it.
Thinking about it more I think just putting a nickname in so the entities inherit it is the right move (and this is how some of the other integrations I use work). Do you have strong feelings about how you'd expect that to work? if not I will sketch something out and add it.
EDIT: Sorry I actually misread your first post. The platform
key needs to be franklin_wh
because that's how it loads the module. By specifying the two different gateway IDs it would create two sets of sensors but I suspect with the same entity IDs in a way that might be very confusing, but what you're trying to do will more or less work with the nickname key.
I just installed HA today, so anything you suggest is fine with me. HA found a bunch of stuff on our network, but my very first order of business was to get your work installed. I'm particularly interested in integrating my e-gauge devices and the FranklinWH units so we can have a easy to understand display of what is going on with our power usage.
Sweet! Feel free to reach out if I can help. This is a passion project but I'm glad people are getting value out of it.
Getting it into HACS is a bit of a chore (mostly because the way they package it makes it annoying to install out of HACS) but I will be doing that once it's a little more stable that should make it easier for folks to setup. I'll update this issue once I have this in place for you.
I just pushed a branch called nicknames
that I think should work, but I haven't tested it yet. I can when I get home.
We have a permitted ADU with separate electrical service, and as a result we have 2 FranklinWH installs each with a battery and an A gate. I would like to see each of these in HA. Can I just have 2 sensors labeled something like this? sensor: