Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Devices with active "instant readout" lead to failure #5

Open
Visnu7777 opened this issue Apr 15, 2024 · 1 comment
Open

Comments

@Visnu7777
Copy link

I managed to get it working with a Smart Shunt by adding the missing mapping entries.

'aux_mode': HaValueInfo(
        name='Aux Mode',
        device_class=None,
        state_class=None,
        unit=None,
    ),
    'consumed_ah': HaValueInfo(
        name='Consumed Ah',
        device_class='energy',
        state_class='measurement',
        unit='Ah',
    ),
    'current': HaValueInfo(
        name='Current',
        device_class='current',
        state_class='measurement',
        unit='A',
    ),
    'remaining_mins': HaValueInfo(
        name='Remaining Minutes',
        device_class=None,
        state_class=None,
        unit=None,
    ),
    'soc': HaValueInfo(
        name='SoC',
        device_class='battery',
        state_class='measurement',
        unit='%',
    ),
    'voltage': HaValueInfo(
        name='Voltage',
        device_class='voltage',
        state_class='measurement',
        unit='V',
    )

At the moment it seems to scan for any instant readout enabled device, searches for a key in the config and does its thing. When you have more than one this fails since theres only one device in the settings file and the encryption keys are unique. Solution could be multiple [[device]] table arrays.

[[device]]
device_name = "VictronSmartShunt"
device_address = "D2:D1:AF:AE:BF:2B"
device_key = ""

[[device]]
device_name = "Victron"
device_address = "D4:E5:16:A8:D1:8C"
device_key = ""
@marvinit
Copy link

Really nice project. I can't really get it to work with more than one device, and from what I can see, there is no array of devices. Any idea if you can fix that? The MQTT is really nice! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants