Ihto heatpump connected to Domoticz Topic is solved

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
Rik60
Posts: 93
Joined: Sunday 25 June 2023 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: The Netherlands
Contact:

Ihto heatpump connected to Domoticz

Post by Rik60 »

Hi all,
I am trying to connect a Itho heatpump to Domoticz. I am using (trying) to do this with MQTT. I do have a connection, Auto discover is creating a fan in Domoticz, no other devices. With MQTT explorer i can see some data, but does this data telling me that it is not possible in this way?

Thanks
Attachments
MQTT_Explorer.jpg
MQTT_Explorer.jpg (217.85 KiB) Viewed 910 times
User avatar
waltervl
Posts: 5886
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Ihto heatpump connected to Domoticz

Post by waltervl »

There is only a fan device config in the homeassistant topic so that should be correct.

I dont know where the config topic in the Domoticz topic is coming from but that seems to be a configuration error made by you.

I suspect in the Itho topic all the device states are shown and in the homeassistant topic all the device config are shown. Domoticz looks at the config topics to create devices. In the state topics the states of those devices are shown.
So it seems you miss some config topics in the homeassistant topic if you expect more devices should be created.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Rik60
Posts: 93
Joined: Sunday 25 June 2023 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: The Netherlands
Contact:

Re: Ihto heatpump connected to Domoticz

Post by Rik60 »

Thanks.
I have looked a bit closer in de api program files, found that there is just 1 config file, it is for a fan. Other config files has to be done. So, for a heatpump there is no config file and i don't know how to write one. I am going to try with the web-api. If i do a web request i get all the information i need, but have to figure out how to put it in Domoticz (plug-in?)
User avatar
waltervl
Posts: 5886
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Ihto heatpump connected to Domoticz

Post by waltervl »

You could try to create Autodiscover config topics with mqtt explorer based on the Homeassistant integration in the wiki page
https://github.com/arjenhiemstra/ithowi ... mp-support

The data is in the ithostatus message so you can also try to use the Domoticz MQTTmapper python plugin. viewtopic.php?f=65&t=39279
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5886
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Ihto heatpump connected to Domoticz

Post by waltervl »

I tried copilot for this and it says:
Auto-Discovery Topics:

For each sensor or device, you need to publish a configuration payload to the appropriate topic. Here are some examples based on the Itho WPU Heat Pump:

Temperature Sensor:

Code: Select all

homeassistant/sensor/itho_wpu_temperature/config:
  {
    "name": "Itho WPU Temperature",
    "state_topic": "itho/wpu/temperature",
    "unit_of_measurement": "°C",
    "value_template": "{{ value_json.temperature }}"
  }
Humidity Sensor:

Code: Select all

homeassistant/sensor/itho_wpu_humidity/config:
  {
    "name": "Itho WPU Humidity",
    "state_topic": "itho/wpu/humidity",
    "unit_of_measurement": "%",
    "value_template": "{{ value_json.humidity }}"
  }
Power Consumption:

Code: Select all

homeassistant/sensor/itho_wpu_power/config:
  {
    "name": "Itho WPU Power",
    "state_topic": "itho/wpu/power",
    "unit_of_measurement": "W",
    "value_template": "{{ value_json.power }}"
  }
Publishing the Configuration:

Use an MQTT client to publish these configuration payloads to the respective topics. For example, using mosquitto_pub:

Code: Select all

mosquitto_pub -h <broker_address> -t homeassistant/sensor/itho_wpu_temperature/config -m '{"name": "Itho WPU Temperature", "state_topic": "itho/wpu/temperature", "unit_of_measurement": "°C", "value_template": "{{ value_json.temperature }}"}'
These steps should help you integrate the Itho WPU Heat Pump with Home Assistant using MQTT auto-discovery.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5886
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Ihto heatpump connected to Domoticz

Post by waltervl »

Reading the above Copilot fooled me.... It should all link to topic itho/ithostatus

Code: Select all

homeassistant/sensor/itho_wpu_boiler_temp/config:
  {
    "name": "Itho WPU Boiler temp",
    "state_topic": "itho/ithostatus",
    "unit_of_measurement": "°C",
    "value_template": "{{ value_json['Boiler temp up (°C)'] }}",
    "state_class": "measurement",
     "device_class": "temperature"
  }
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Rik60
Posts: 93
Joined: Sunday 25 June 2023 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: The Netherlands
Contact:

Re: Ihto heatpump connected to Domoticz

Post by Rik60 »

Thanks Walter,
It's the first time i am going to use MQTT. So this will be a good practice
Rik60
Posts: 93
Joined: Sunday 25 June 2023 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: The Netherlands
Contact:

Re: Ihto heatpump connected to Domoticz

Post by Rik60 »

Playing with MQTT mapper, making it working for 1 sensor. If i create a second sensor i see an error in the domoticz logging:

Code: Select all

MQTT mapper: Duplicate itho/ithostatus node/key....
How can i create more sensors with the same topic itho/ithostatus in the file MqttMapper.json?
File MqttMapper.json that is working:

Code: Select all

{
	"Itho Boiler temp beneden": {
		"topic": "itho/ithostatus",
		"type": "80", "subtype": "5", "switchtype": "0",
		"mapping": {"item": "Boiler temp down (°C)"}
	}
}
File MqttMapper.json failing:

Code: Select all

{
	"Itho Boiler temp beneden": {
		"topic": "itho/ithostatus",
		"type": "80", "subtype": "5", "switchtype": "0",
		"mapping": {"item": "Boiler temp down (°C)"}
	},
	"Itho Boiler temp boven": {
		"topic": "itho/ithostatus",
		"type": "80", "subtype": "5", "switchtype": "0",
		"mapping": {"item": "Boiler temp up (°C)"}
	}
}
What could be the problem?
FlyingDomotic
Posts: 388
Joined: Saturday 27 February 2016 0:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Ihto heatpump connected to Domoticz

Post by FlyingDomotic »

Problem is that 2 devices are linked to topic "itho/ithostatus", and as this is Domoticz default key for device, 2 of them are hidden.

That's why a "key" item has been created.

To fix the issue, you may try something like:
{
"Itho Boiler temp beneden": {
"topic": "itho/ithostatus",
"key": itho/ithostatus"
"type": "80", "subtype": "5", "switchtype": "0",
"mapping": {"item": "Boiler temp down (°C)"}
},
"Itho Boiler temp boven": {
"topic": "itho/ithostatus",
"key": itho/ithostatus-up"
"type": "80", "subtype": "5", "switchtype": "0",
"mapping": {"item": "Boiler temp up (°C)"}
}
}

Keys should be unique among a file, and doesn't need to be related to anything.

You can also use "key": "itho/ithostatus1"/"itho/ithostatus2" or "tempxxx"/"tempyyy" as long as keys are unique into the considered file.

As soon as yo define them, don't change them, otherwise you create new devices, with same name. After a change, don't forget to check that there's no duplicate devices in Domoticz. In doubt, delete all dupplicate, and restart MqttMapper.

Don't hesitate to ask, if something is not so clear.
Rik60
Posts: 93
Joined: Sunday 25 June 2023 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: The Netherlands
Contact:

Re: Ihto heatpump connected to Domoticz

Post by Rik60 »

It's working now. I already saw this "key" solution in another Mqtt topic, tried it but didn't work. But now it is, thanks.
This is the file now (and i am going to add more...):

Code: Select all

{
	"Itho Boiler temp beneden": {
		"topic": "itho/ithostatus",
		"key": "itho/ithostatus1",
		"type": "80", "subtype": "5", "switchtype": "0",
		"mapping": {"item": "Boiler temp down (°C)"}
	},
	"Itho Boiler temp boven": {
		"topic": "itho/ithostatus",
		"key": "itho/ithostatus2",
		"type": "80", "subtype": "5", "switchtype": "0",
		"mapping": {"item": "Boiler temp up (°C)"}
	},
	"Itho Kamer temperatuur": {
		"topic": "itho/ithostatus",
		"key": "itho/ithostatus3",
		"type": "80", "subtype": "5", "switchtype": "0",
		"mapping": {"item": "Room temp (°C)"}
	},
	"Itho Kamer setpoint": {
		"topic": "itho/ithostatus",
		"key": "itho/ithostatus4",
		"type": "80", "subtype": "5", "switchtype": "0",
		"mapping": {"item": "Requested room temp (°C)"}
	}

}
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest