thomasddn / qbha

Qbus Bridge for Home Assistant
GNU General Public License v3.0
10 stars 2 forks source link

Support for CO2 sensor/entity type ventilation? #9

Closed SamDeZwam closed 1 month ago

SamDeZwam commented 2 months ago

Hi,

Thanks for your work on this, works great.

I'm just missing the ventilation entity type: From the logs: 2024-09-14 06:57:21,163 qbha.Subscribers.QbusConfigSubscriber WARNING - Entity type 'ventilation' not (yet) supported.

I have the AIR01CT co2 sensor which measures C02 concentration in the living room. The value is used to trigger higher or lower ventilation speeds. At the moment the logic is in the QBUS system, visualisation is with Ubie

It would be nice if I could migrate this to home assistant.

Kind regards, Sam

image

thomasddn commented 2 months ago

Hi! Do I understand correctly that you want both the ventilation and the co2 sensor in HA?

Can you upload your qbusconfig.json file to https://www.dropbox.com/request/JwAJj6fzojRBDtiSTEUj? (Only I can see what you upload.) Please also provide the exact names of the entities you want in HA.

How to get the qbusconfig.json file is explained in the faq: https://github.com/thomasddn/qbha/wiki/FAQ

SamDeZwam commented 2 months ago

Hi, Only the CO2 sensor is needed. I've uploaded the file. It's this one (other items regarding ventilatie in the file are switches to regulate speed of the ventilation): { "id": "UL33", "location": "", "locationId": 0, "name": "Luchtsensor", "originalName": "Luchtsensor", "refId": "000494/224", "type": "ventilation", "variant": [ null ], "actions": { }, "properties": { "co2": { "max": 5000, "min": 0, "read": true, "step": 16, "type": "number", "unit": "ppm", "write": false }, "currRegime": { "enumValues": [ "Manueel", "Nacht", "Boost", "Uit", "Auto" ], "read": true, "type": "enumString", "write": true }, "refresh": { "max": 100, "min": 0, "read": true, "step": 1, "type": "number", "write": true } } Thanks, Sam

thomasddn commented 1 month ago

I'm trying to create the same output in System Manager, but can't find the exact output to use. Can you share how to create this output in System Manager? Maybe add some screenshots as well.

thomasddn commented 1 month ago

I will also need the value from the state topic of that output. Please enable QBUS_CAPTURE and restart QBHA. Then wait until the the sensor changes value. It will log the value to qbuscapture.log. Look for cloudapp/QBUSMQTTGW/UL1/UL33/state.

Afterwards, disable QBUS_CAPTURE again and restart.

SamDeZwam commented 1 month ago

Dag Thomas,

Sorry voor de vertraging, heb na een fietsongeval een weekje doorgebracht in het ziekenhuis.

System manager: Eerste screenshot zonder de actuele waarden te lezen

[image: image.png]

Met lezen van actuele waarden: Voor mij is de CO2 waarde de belangrijkste.

[image: image.png]

Hieronder heb ik geen aanpassingen gedaan, de snelheid wordt adhv logica / co2 waarde aangestuurd (volgende screenshot)

[image: image.png]

Logica:

[image: image.png]

Ventilatie hoog config:

[image: image.png]

In bijlage de logfile.

Vriendelijke groeten, Sam

Op vr 20 sep 2024 om 13:32 schreef Thomas D @.***>:

I will also need the value from the state topic of that output. Please enable QBUS_CAPTURE and restart QBHA. Then wait until the the sensor changes value. It will log the value to qbuscapture.log. Look for cloudapp/QBUSMQTTGW/UL1/UL33/state.

Afterwards, disable QBUS_CAPTURE again and restart.

— Reply to this email directly, view it on GitHub https://github.com/thomasddn/qbha/issues/9#issuecomment-2363516545, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXQLKSNXSJWCJX6EKYTZPGTZXQBTLAVCNFSM6AAAAABOGSMJDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRTGUYTMNJUGU . You are receiving this because you authored the thread.Message ID: @.***>

thomasddn commented 1 month ago

@SamDeZwam First of all I hope everything is OK!

The images and attachment didn't come through, probably because you answered via email.

SamDeZwam commented 1 month ago

Dag Thomas,

Tweede poging ;-)

Schade valt beter mee dan initieel ingeschat, 't is nog voornamelijk herstellen van een hersenschudding.

System manager: Eerste screenshot zonder de actuele waarden te lezen

image

Met lezen van actuele waarden: Voor mij is de CO2 waarde de belangrijkste.

image

Hieronder heb ik geen aanpassingen gedaan, de snelheid wordt adhv logica / co2 waarde aangestuurd (volgende screenshot)

image

Logica:

image

Ventilatie hoog config:

image

In bijlage de logfile.

Vriendelijke groeten, Sam

qbuscapture.log

thomasddn commented 1 month ago

Support has been added in the new release (v0.8.0). Please reopen this issue if something is not working as it should.