michaelkrog / blaubergventojs

MIT License
2 stars 2 forks source link

vent.mode returns null instead of 0 when mode is 0 #1

Open intellicasa opened 10 months ago

intellicasa commented 10 months ago

Ich verwende die Bibliothek in einem IOBroker Adapter: https://github.com/intellicasa/ioBroker.blauberg-ventilation

vent.mode liefert null statt 0 when der Lüftungmodus auf "Lüften" steht

` const response = this.resource.findById(ventConfigEntry.id); const vent = await response.catch(() => { return null; });

if (vent) { const mode = vent.mode; } ` vent.mode liefert mir null statt 0. Bei 1 oder 2 gibt es keine Probleme

intellicasa commented 10 months ago

Sorry, I thought you're german before I recognized that you're from denmark :-)

So the problem is, thst if I change the ventilation mode with my remote control, or directly with the buttons on the vent or via app so that the vent mode is air intake (Ventilation Mode = 0), then vent.mode return null, instead of 0

michaelkrog commented 9 months ago

Kein problem. Ich versteht Deutch, aber sprecht es nicht so gut. 😊

I am sorry for not getting back to you on this. I am just so busy renovating a house and starting a business. Are you able to create PR's for the bugs, and I'll try to take out time to look them through.