CJNE / pymyenergi

An async python library for interfacing with MyEnergi devices
MIT License
19 stars 15 forks source link

Zappi: number of phases charging #23

Closed jwillemsen closed 5 months ago

jwillemsen commented 5 months ago

According to https://github.com/CJNE/pymyenergi?tab=readme-ov-file#example-client-usage---zappi there should be a num_phases property to retrieve the amount of phases charging but that doesn't to be available as part of the Zappi class

jwillemsen commented 5 months ago

Added some logging, it seems there is a phaseSetting

{'deviceClass': 'ZAPPI', 'sno': xxx, 'dat': '11-03-2024', 'tim': '11:30:24', 'ectp1': 0, 'ectp2': 0, 'ectp3': 0, 'ectt1': 'Internal Load', 'ectt2': 'Internal Load', 'ectt3': 'Internal Load', 'bsm': 0, 'bst': 0, 'dst': 1, 'div': 0, 'frq': 49.94, 'grd': -219, 'pha': 2, 'pri': 1, 'sta': 4, 'tz': 3, 'vol': 2324, 'che': 26.68, 'bss': 0, 'lck': 16, 'pst': 'A', 'zmo': 1, 'pwm': 1000, 'zs': 256, 'rdc': 3, 'rac': 4, 'rrac': 3, 'zsh': 1, 'ectp4': 103, 'ectp5': -218, 'ectp6': -98, 'ectt4': 'Grid', 'ectt5': 'Grid', 'ectt6': 'Grid', 'beingTamperedWith': False, 'batteryDischargeEnabled': False, 'g100LockoutState': 'NONE', 'phaseSetting': 'SINGLE_PHASE', 'mgl': 100, 'sbh': 17, 'sbk': 5, 'fwv': '3562S5.434', 'cmt': 253, 'newAppAvailable': False, 'newBootloaderAvailable': False}