Z Wave config for MCOHome MH9 CO2 Monitor

I just received my MCOHome MH9 CO2 Monitor, but this device was not in the Z Wave database so I added it myself. But I don’t know if everything is correct because this is the first time I’m adding a device myself. Could please someone verify this?

I’ve added an mh9-co2.xml in the mcohome folder with this content:

<?xml version="1.0" encoding="utf-8"?>
<Product>
	<Model>MH9-CO2</Model>
	<Label lang="en">CO2 Monitor</Label>
	<CommandClasses>
        <Class>
            <id>0x20</id>             <!-- BASIC -->
        </Class>
        <Class>
            <id>0x21</id>             <!-- SENSOR_MULTILEVEL -->
        </Class>
        <Class>
            <id>0x70</id>             <!-- CONFIGURATION -->
        </Class>
        <Class>
            <id>0x71</id>             <!-- ALARM -->
        </Class>
        <Class>
            <id>0x85</id>             <!-- ASSOCIATION -->
        </Class>
        <Class>
            <id>0x72</id>             <!-- MANUFACTURER_SPECIFIC -->
        </Class>
        <Class>
            <id>0x86</id>             <!-- VERSION -->
        </Class>
	</CommandClasses>
	<Configuration>
		<Parameter>
			<Index>1</Index>
			<Type>byte</Type>
			<Default>1000</Default>
			<Size>2</Size>
			<Minimum>1</Minimum>
            <Maximum>2000</Maximum>
			<Label lang="en">CO2 Notification threshold</Label>
			<Help lang="en">CO2 Notification threshold</Help>
		</Parameter>
	</Configuration>
	<Associations>
		<Group>
			<Index>1</Index>
			<Maximum>5</Maximum>
			<Label lang="en">Notifications</Label>
			<SetToController>true</SetToController>
		</Group>
		<Group>
			<Index>2</Index>
			<Maximum>1</Maximum>
			<Label lang="en">Gateway</Label>
			<SetToController>true</SetToController>
		</Group>
	</Associations>
</Product>

I also added the device to the products.xml like this:

<Product>
  <Reference>
    <Type>0905</Type>
    <Id>0201</Id>
  </Reference>
  <Model>MH9-CO2</Model>
  <Label lang="en">CO2 Monitor</Label>
  <ConfigFile>mcohome/mh9-co2.xml</ConfigFile>
</Product>

So far everything is working. I was able to add my z wave stick to both association groups and I can receive the values from the device. Could please someone verify and add this to the binding?

Could anyone please add this device to the database?

It’s in the database already. If you an create a PR for OH1 by exporting the database, this would be great.

Thanks for the quick answer. Can I just add an issue to the OH1 repository containing the link to the configuration or how is this done? (https://github.com/openhab/openhab1-addons/issues)

And do I also have to create an issue for the OH2 repository?

If you’re not used to doing a pull request, then if you create an issue on OH1 with the link to the database, that will be fine and I’ll update the binding when I get a chance (in a day or two probably). OH2 is already included…

I’ve just created a pull request: https://github.com/openhab/openhab1-addons/pull/5048
Hope I did everything right. :slight_smile:

1 Like

That’s great - thanks.