Code Monkey home page Code Monkey logo

Comments (11)

seanrees avatar seanrees commented on September 14, 2024

Hi there, what model device do you have?

I believe this is possible to add, but it is somewhat complicated because:

  1. I don't have a device that reports this, so I'd need your help to test.
  2. @shenxn 's libdyson doesn't currently support this field, so this needs to be updated first. I can likely help with this as I don't think it's super difficult.

What would be helpful to start would be a full debug log with a few samples of the hcho/hchr fields.

from prometheus-dyson.

kaiherzig avatar kaiherzig commented on September 14, 2024

Hi it's a TP-09
https://www.dyson.com/air-treatment/purifiers/dyson-purifier-cool-formaldehyde-tp09/dyson-purifier-cool-formaldehyde-overview-tp09

2021/06/21 08:39:57 [548361592848] INFO Starting up on port=8091
2021/06/21 08:39:57 [548361592848] INFO Reading "config.ini"
2021/06/21 08:39:57 [548361592848] INFO Starting discovery...
2021/06/21 08:39:57 [548361592848] INFO Attempting to discover device "Schlafzimmer" (serial=K3G-EU-PDA2222A) via zeroconf
2021/06/21 08:39:57 [548323983840] INFO Discovered K3G-EU-PDA2222A on 10....
2021/06/21 08:39:58 [548315591136] DEBUG Connected with result code 0
2021/06/21 08:39:58 [548323983840] INFO Connected to device K3G-EU-PDA2222A
2021/06/21 08:39:58 [548315591136] DEBUG New state: {'msg': 'CURRENT-STATE', 'time': '2021-06-21T06:39:59.000Z', 'mode-reason': 'PRC', 'state-reason': 'MODE', 'rssi': '-46', 'channel': '11', 'fqhp': '90760', 'fghp': '77400', 'product-state': {'fpwr': 'ON', 'auto': 'ON', 'oscs': 'IDLE', 'oson': 'ON', 'nmod': 'OFF', 'rhtm': 'ON', 'fnst': 'OFF', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': 'AUTO', 'bril': '0002', 'corf': 'ON', 'cflr': 'INV', 'hflr': '0098', 'cflt': 'SCOF', 'hflt': 'GCOM', 'sltm': 'OFF', 'osal': '0152', 'osau': '0242', 'ancp': 'CUST', 'fdir': 'ON'}, 'scheduler': {'srsc': '0000000060ca55de', 'dstv': '0001', 'tzid': '0001'}}
2021/06/21 08:39:58 [548315591136] DEBUG Received update from K3G-EU-PDA2222A: MessageType.STATE
2021/06/21 08:39:58 [548315591136] DEBUG New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-06-21T06:39:59.000Z', 'data': {'tact': '2951', 'hact': '0053', 'pm25': '0001', 'pm10': '0001', 'va10': '0006', 'noxl': '0002', 'p25r': '0002', 'p10r': '0002', 'hcho': '0000', 'hchr': '0000', 'sltm': 'OFF'}}
2021/06/21 08:39:58 [548315591136] DEBUG Received update from K3G-EU-PDA2222A: MessageType.ENVIRONMENTAL
2021/06/21 08:39:58 [548315591136] DEBUG New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-06-21T06:39:59.000Z', 'data': {'tact': '2951', 'hact': '0053', 'pm25': '0001', 'pm10': '0001', 'va10': '0006', 'noxl': '0002', 'p25r': '0002', 'p10r': '0002', 'hcho': '0000', 'hchr': '0000', 'sltm': 'OFF'}}
2021/06/21 08:39:58 [548315591136] DEBUG Received update from K3G-EU-PDA2222A: MessageType.ENVIRONMENTAL
2021/06/21 08:40:28 [548306936288] DEBUG Requesting updated environmental data from K3G-EU-PDA2222A
2021/06/21 08:40:28 [548315591136] DEBUG New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-06-21T06:40:29.000Z', 'data': {'tact': '2951', 'hact': '0053', 'pm25': '0001', 'pm10': '0001', 'va10': '0006', 'noxl': '0002', 'p25r': '0002', 'p10r': '0002', 'hcho': '0000', 'hchr': '0000', 'sltm': 'OFF'}}
2021/06/21 08:40:28 [548315591136] DEBUG Received update from K3G-EU-PDA2222A: MessageType.ENVIRONMENTAL

from prometheus-dyson.

seanrees avatar seanrees commented on September 14, 2024

Apologies for the delay in responding; I've been pretty busy elsewhere lately. :-)

Thanks for that the log entry. I'm assuming you ran config_builder to generate a config? Can you provide the ProductType it discovered? (from your config.ini)

There was a change to support type 527E here: shenxn/libdyson#9 and I'm wondering if this model differentiates itself by having the Formaldehyde sensors.

from prometheus-dyson.

crgreenwood avatar crgreenwood commented on September 14, 2024

Unfortunately not - 527E does not have the formaldehyde sensor. The one with the formaldehyde sensor is yet another model.

from prometheus-dyson.

seanrees avatar seanrees commented on September 14, 2024

Ping @kaiherzig ?

Can't proceed without the information requested above -- so the other option is to close the issue.

from prometheus-dyson.

kaiherzig avatar kaiherzig commented on September 14, 2024

from prometheus-dyson.

kaiherzig avatar kaiherzig commented on September 14, 2024

Sorry for the delay.
producttype = 438E

from prometheus-dyson.

seanrees avatar seanrees commented on September 14, 2024

Thanks @kaiherzig, looks like libdyson has partial support for 438E which is why it sort of works for you.

I created a PR for libdyson to wire through the formaldehyde metrics: shenxn/libdyson#12 which is the first step to support in this code.

from prometheus-dyson.

seanrees avatar seanrees commented on September 14, 2024

Update: this is ready for testing. I just released 0.3.1 which should plumb through the formaldehyde metric from libdyson.

Will you let me know if it works for you?

from prometheus-dyson.

kaiherzig avatar kaiherzig commented on September 14, 2024

Looks good :)
It's working.

from prometheus-dyson.

seanrees avatar seanrees commented on September 14, 2024

Great news :) Thanks for filing the issue & testing the change 👍

from prometheus-dyson.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.