logo elektroda
logo elektroda
X
logo elektroda

Tuya Airbox: Issues with CH2O, VOC, CO2 Data Not Publishing to Home Assistant

qrmonzergamal 270 2
ADVERTISEMENT
  • #1 21283277
    qrmonzergamal
    Level 2  
    hello,,
    i'm working on tuya airbox ,, that measure temp,hum,co2,voc,and ch2o ,,
    i used this code : {
    startDriver TuyaMCU
    tuyaMcu_defWiFiState 4
    tuyaMcu_setBaudRate 9600
    setChannelType 1 Temperature_div10
    linkTuyaMCUOutputToChannel 18 val 1
    setChannelType 2 Humidity_div10
    linkTuyaMCUOutputToChannel 19 val 2
    setChannelType 3 Custom
    SetChannelLabel 3 CH2O mg/m^3
    linkTuyaMCUOutputToChannel 2 val 3
    setChannelType 4 Custom
    SetChannelLabel 4 VOC ppm
    linkTuyaMCUOutputToChannel 21 val 4
    setChannelType 5 Custom
    SetChannelLabel 5 CO2 ppm
    linkTuyaMCUOutputToChannel 22 val 5
    tuyaMcu_sendQueryState

    }
    the temp and hum is published to HA but the other is not published
    anyone can help? Screenshot showing device and sensor information. Screenshot of the TuyaMCU interface showing measurement details and connection status.
  • ADVERTISEMENT
  • #2 21287160
    p.kaczmarek2
    Moderator Smart Home
    I see, I've checked your code and it turned out that "Custom" channels were not included in HASS Discovery. Only "ReadOnly" were. Still, it should be fixed now. Update OBK, redo Home Assistant Discovery and they should appear now.

    Alternatively, change "Custom" to "ReadOnly" in your Script, and then redo HA Discovery as well.

    Let me know if it works for you.
    Helpful post? Buy me a coffee.
  • #3 21287463
    qrmonzergamal
    Level 2  
    >>21287160 ya it's work well, thanx
ADVERTISEMENT