ioBroker v9.1.2 as MQTTv5 Client for your WQHD INSTAR IP Camera

Q: I have been trying to use the 2K cameras with the IoBroker for days now. The cameras all appear with its tree in the IoBroker, but unfortunately all variables are always null. If I want to set a value, I can, but it does not arrive in the camera.

A: We have seen issues with the MQTT Broker adapter in ioBroker before. It sometimes stops updating topics. With our new 2K+ WQHD cameras we now added the option to lower the QoS (Quality-of-Service) for the INSTAR MQTT client which seemed to be the issue. But right now I was able to reproduce the problem again. If this happens we recommend to first connect the MQTT Explorer and see if the updates from you camera are actually published. In my case just now I had to switch the MQTT Broker/Client adapter to Client Mode, activate the broker inside my camera and connect ioBroker and the MQTT explorer with the broker before I was able to see updates in the MQTT Explorer - but there was still nothing in the ioBroker object tree.

If this is the case - just switch to the trusty MQTT Client adapter instead. This one never acted up for me:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

Now activate the Broker Mode inside your camera - Note that you cannot use TLSv1.3 encryption (v1.2 works fine) and that you should reduce the QoS to 1:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

Add the camera IP and your configured broker login to the MQTT Client adapter configuration:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

Note that I limit the subscriptions to prefix/cameraID/status/multimedia/# and prefix/cameraID/multimedia/# - those are wildcard subscriptions to all multimedia status and command topics - adjust this according to your needs by adding more topics comma seperated:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

If everything is set up correctly the client should now be connected:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

The camera should automatically update all status topics. If they don't appear you can try to restart your camera or simply update something by switching something through the camera webUI:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

I am now using the MQTT Explorer to switch a value using the corresponding command topic - e.g. switch on a privacy area to see the result in your camera's livestream immediately. You can also see that the moment you send the update to the command topic the status topic in MQTT Explorer should update as well:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

Repeat the last step - but this time using the RAW Command Topic that allows you to use the value directly as payload instead of having to use JSON:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

Both command topics should now be shown in the ioBroker object tree - for some reason they initially showed null as value. Click on the settings icon to configure both of them:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

Make sure that both subscribe and publish are activated:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

Repeat the last step for the RAW Command Topic:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

Click on the value of the RAW Command Topic to try updating it. Currently the privacy area is activated - so sending a 0 should deactivate it:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

A few seconds later the Status Topic will update accordingly with {"val":"0"} and the area will disappear in the camera livestream:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

To test the regular Command Topic update the value to {"val":"1"}:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

And the Status Topic should update accordingly:

ioBroker v9.1.2 as MQTTv5 Client for your  WQHD INSTAR IP Camera

Now you can use the command topics for your ioBroker automations!