ricott / homey-no.easee

Easee app for Homey
GNU General Public License v3.0
5 stars 5 forks source link

command beeing sent to both chargers #76

Open kmengvik opened 1 month ago

kmengvik commented 1 month ago

Noticed that dynamic charger current command sent to charger at the lodge, also is sent to the charger at home. Anyone else experiencing this? Richard, is there a plausible explanation?

image

ricott commented 1 month ago

Don't see how that can happen on the Homey app side, but of course interested to hear of more people experience this. It sounds strange, the API call for this endpoint contains the charger's id /api/chargers/${chargerId}/settings

The method used in flows, uses the device (charger) passed as input, and invokes the method on this object - ie cant address two objects. https://github.com/ricott/homey-no.easee/blob/7a7d2195f5cff7ac3b8f95578d98ef29f23f36ad/drivers/charger/driver.js#L452