Hi @Gianni,
My apologies for the copy and paste error.
The first publication I sent you, I tested in some way with another (simple) MQTT server (hbmqtt) and I wrongly assumed that the syntax was identical with the required syntax for Mosquitto. It was almost, but not fully.
So I only used --url (or -L) for the IP address for the MQTT server and a separate -t for the topic.
And obviously that was not allowed and I had to combine these.
I took the freedom the choose as topic panasonic/living.
You can choose your own topic name, as I think you have another device as well.
So select your desired topic names.
The other forward / was a left over from the full path, I suggested.
So after that i run the command on terminal 1 en run the second command on terminal 2
No output.
Then is start the command on Term 2 first en run the pub as second and then i get the stats of device 1
I should have told you to start the mosquitto_sub first and then mosquitto_pub.
Are you satisfied with the result? Does it match with the published message?
We are now so far that you have to make some decisions.
This command:
python3 pcomfortcloud.py login pasword get 1 | mosquitto_pub --url mqtt://127.0.0.1/panasonic/living -s
you can run in cronjob. But as Cron has its own environment and so is unaware of the environment variables you have to use the full path for python3, pcomfortcloud.py and mosquitto_pub
You have also to decide how often you want to run this command.
And of course your second device.
Another option is to create a bash file, with includes the commands, including the polling time.
This bash file can run as a service, so that it directly start after a reboot.
It is up to you.
The next step is to connect Node Red to the Mosquitto server and to convert the published message, so that Domoticz will accept it.
If you are not familiar with NR I can create that flow(s) for you.
In that case you have to tell me:
- what are the names for the topics, you have chosen?
- which sensors do you want to see in Domoticz?
From time to time you have to test things and to return some screenshots.
Let me know.
Regards