After an intense struggle ( ) i’ve finally managed to setup the Hassio configuration with secure communication, and Mosquitto is running fine. That is, i think it is, since i can connect the Owntracks app.
My home energy system is setup through a Z-wave Hub that reads ( and displays its own interface) all connected switches, Environmental meters, Solarpanels, Gas meter, Smart meter, Modbusses, etc etc.
Well, I’d like to know what u are now using as interface to monitor the energy in and out. I’d like to know if you can use the z-wave from the iungo to control other devises in the smart home environment and last but not least how to setup the iungo and the mqtt broker. Where i have to say the iungo api is already setup to HA.
install the Mosquito broker in your HA instance via Supervisor.
enter the IP address of that broker (ha instance) and credentials in the Iungo control page
check the mqtt add-on logs for correct connection
then, setup mqtt integration via configuration/integrations, click the + and search for MQTT, enter the same credentials.
Your HA instance should now be able to create Mqtt sensors,dependingon the hardware you have connected to the Iungo.
for the topics, you can best use an app like Mqtt explorer to get the exact topic path.
and yes, you can switch the wave switches, but not using the Z-wave integration in HA. Either subscribe to the topics Iungo sends to the broker, (and read these topics as mqtt sensors)
dont select filter enable (yet) to have the Iungo publish all events
Note the IP address in the Broker address, this is the IP address of the HA instance you run the integration Add-on on, described in the post above under the first bullet
I’ll try to sort that out when I can. I did notice that I had the filter on in the iungo and I am not quite sure how to configure or what to fill in on the MQTT side of this communication but I’ll mess around with that a little over the coming days.
Thanks for your help so far. I got the usage info from the Z-wave switches on visible in HA. However switching them on and off from within HA is a bit advanced for me at this stage. Any chance for a bit of step by step help on that?
the Iungo only accepts external api calls which you can enter in a terminal app using a curl command, or, of course using th shell_command I posted above
you do need to find the object id (oid) of the switches, and they are available to you in the Iungo control interface between the square brackets [123456]
I copied and pasted your link changed the IP address of my iungo and the oid to the switch i’d like to turn on.
I did the same with the link that you posted a little further up and put that in the conf.yaml file. when then checking the configuration HA returns the following.
Invalid config for [shell_command]: invalid slug Licht_keuken_on (try licht_keuken_on) for dictionary value @ data[‘shell_command’]. Got OrderedDict([(‘Licht_keuken_on’, ‘curl -X POST -d ‘{“seq”:1, “method”:“object_prop_set”, “arguments”:{“oid”:“25b1fa26”, “prop”:“command”, “value”:“on”}}’ http://192.168.1…/iungo/api_request’)]). (See /config/configuration.yaml, line 113).
please post here, and in correct code block, or we cant see what you did exactly (use the 3 backticks before and after the code ) or select the code and click the </> button in the editor menu
as for the slugs, the error returns the solution: use lower case only
yes, that should do it.
if you take only the curl line, and copy that into the terminal, it should switch on, and return useful succes/error information
btw not need to cover the IP address, its internal, so of no use for anyone outside your config…
It seems that when I copy lines, for instance the early line you had posted and then change the ip address / oid an other pertinent info that sometimes that doesn’t work. Then if I type the same thing letter for letter it does work. little odd if you ask me. I’ve noticed that in copying other lines as well.
Anyway I have added it to my config.yaml which at this point doesnt return any errors the next step I guess would be to create a switch for the lovelace interface