[TUTORIAL][PRO] How to integrate Home Assistant with Homey

Thanks a million Peter and again - many thanks for the description - it was straight as ND-46W… :slight_smile:

Best, J.

1 Like

Hi Peter,

sorry to bother you again… hope I am not overusing your kind help…

Question to HA-Homey integration - basically as far as I could try how devices function and communicate everything looks OK, my famous Tuya thermostats communicate both ways, lights work both ways so I assume the communication using MQTT is fine.

I have however two Daikin aircons and despite that they appear nicely in HA:

they seem not to communicate neither way (HA ↔ Homey)…

Any clue how to check/solve this?

Thanks in advance!

Best

J.

is there a way to send a command from homey to home assisstant, to force HA to reboot/restart?

With the community app you can probably use this card:

image

  • Service: restart
  • Domain: homeassistant
  • Data: {}
1 Like

thanks robert for the quick reply.

tried it, and when I test it, i get:

image

Connection lost because HA is restarting…?

1 Like

aah, it does both. it does restart, but it still gives the false message… strange, but the effect is success anyway. thanks!

I think it’s understandable: the “false” isn’t caused by the restart command failing (somehow), it’s caused by HA restarting and (therefore) not sending back a response.

1 Like

understood, and thanks for the help!

Hi Jurek,

Did you take a look with MQTT Explorer already?
This way you can monitor all MQTT messages and values, and what happens real time, and what does not happen.
Do determine if the issues are with the sending, or with the receiving part.

Are the Daikins Homey devices? If true, did you use the custom settings as shown at the MQTT Hub part in the tutorial?

Hi Peter,

Thanks a lot for your suggestions. I will give MQTT Explorer a try.

Yes, Daikins are perfectly integrated with Homey and work flawlessly and yes, I have followed the instruction strictly…

I will work on this and Coe back if I have further questions.

Again, many thanks for your kind patience…

Have a great week

J.

Jurek Chlebowski

1 Like

What does not communicate back? Only the mode or also the target temperature?
Temperature should be synced back to Homey via Mqtt.
Modes are different between HA and Homey, especially if the Homey app uses custom modes. I had to create HA automations and virtual devices in HA to get the modes synced from Homey to HA and back (translated between HA modes and Homey capability values).

If nothing synces back, it seems the connection is lost (the Mqtt topic listener in Homey). Restart Homey MqttHub app (restart app or restart Hub in app settings). That should rebuild the Mqtt connection. This happens if Homey or HA is restarted. In most cases, the MqttHub needs a restart after HA was restarted. I use a the HA Mqtt status topic to start a Homey flow on HA online message. Then the flow restarts the MqttHub.
I use a variable toi check the state because the topic trigger can be executed also if the topic is updated with the same value.


1 Like

Thanks a million, I am sorry for late reply, had quite a busy week… no time for my toys :slight_smile:

TBH I have solved the issue in a simple way - just added a hacs integration of Daikin devices in HA and disconnected both from MQTT - HA link…

This works perfectly now, I have DAIKINS integrated independently on both hubs… :slight_smile:

But I will take the advice into my head as per restarting MQTT after HA restart. May be useful for other devices too…

Many many thanks!!!

J.

@robertklep, as the restart of HomeAssistant works, how do I ask from homey a restart for a specific integration (In this case the zigbee home automation integration)?

Service is still restart
Domain?
and how to use the Data field?

Sorry for the basic questions, anywhere I can read up on this?

I have no idea if this is possible, you’d have to ask on the Home Assistant forum (but I don’t think it’s possible, there are no “restart” actions mentioned here). But why would you want this anyway?

I continuously have a Tuya unit, which currently is in HA that cannot communicate with Homey. If I reset both the service and HA, the communication comes back. That is not to say I think it is due to HA (as I really don’t know where the challenge is) but it works.

By the way I also have a service checking my solar panels and it also gets stuck once every so often (every other day), and also there a restart of both works (also here not sure if it is HA or the APsystems unit I have, as I also restart the smart plug connected to it). after that it works again some time…

So maybe the correct question, any idea what to do here to trouble shoot what is wrong?

With Home Assistant you actually have log files :wink:

just turned on the debug logging. lets see what comes out

It can reload integrations.
On my systems, sometimes Tuya, Growatt & Matter need an automatic reload to fix “unavailable” devices issues.

What I do, is create an action in f.i. an automation,
and then I enable YAML mode:

This reads

data: {}
target:
  entity_id:
    - light.lamp_hal
    - switch.lamp_toilet_switch_1
action: homeassistant.reload_config_entry

Now it should work with the flowcard like this, and reload the integration for this particular light

1 Like