|
From: Giles Godart-B. <ggo...@gm...> - 2024-12-05 07:27:24
|
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">Sorry, but this is beyond me, I’ve only just started using HA, haven’t used scenes and , living in the UK we don’t need fans very often :-)</div><div dir="ltr">In my implementation all I needed was the states to match on both ha and mh so I could continue to use mh for the complicated logic I have built over the years, but use HA as an interface to new devices like Tuya and to create a fresh UI.</div><div dir="ltr">I’ll defer to others with more experience</div><div dir="ltr">Sorry I cannot be more helpful</div><div dir="ltr">Giles</div><div dir="ltr"><br><blockquote type="cite">On 5 Dec 2024, at 03:17, Spencer Ryan <sry...@gm...> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>Thanks Giles,</div><div><br></div><div>Is there any built in functionality to have status not match the control object like in the code I shared? For example when HA turns a FanLinc on it's really going to trigger a scene so that the KPL tied to the FanLinc also shows correct status, however when reading the status back into HA you don't want to read the scene, but the device itself. <br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Dec 4, 2024 at 6:05 PM Giles Godart-Brown <<a href="mailto:ggo...@gm...">ggo...@gm...</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<font size="4" face="Calibri">The bidirectional bit between
Misterhouse and Home Assistant via MQTT is included in the latest
master release. <br>
Your items.mht looks like this, (substitute your IP addresses and
HA API key)<br>
<br>
</font>#########################################################################################################<br>
# HA set up<br>
#########################################################################################################<br>
# HA_SERVER, obj name, address, keepalive,
api_key <br>
HA_SERVER, ha_house, 999.999.999.999:8123, 10,
.............your api key from HA ...................<br>
<br>
#########################################################################################################<br>
# MQTT setup<br>
#########################################################################################################<br>
MQTT_BROKER, mqtt_1, , 999.999.999.999<br>
MQTT_DISCOVERY, mqtt_disc_mqtt1, homeassistant, mqtt_1, publish<br>
<br>
So if you have any item in Misterhouse you will need an
MQTT_LOCALITEM, then Misterhouse will sync this bi-directionally
with HA, <br>
<br>
GENERIC, Lounge_comfort_temp, Lounge|Comfort_temp<br>
#MQTT_LOCALITEM, <mh-mqtt-object>, <mh-object-to-sync>,
<mh-mqtt-broker-object>, <ha object type>,
<node-id>/<mh-object-to-sync>/+, <discoverable>,
<Friendly Name><br>
MQTT_LOCALITEM, Lounge_comfort_mqtt, Lounge_comfort_temp, mqtt_1,
number, mh/Lounge_comfort_temp/+, 1, Lounge Comfort<br>
<br>
If you want to see an HA entity in Misterhouse, you will need an
HA_ITEM like this<br>
<br>
#HA_ITEM, object_name, domain[:subtype],
ha_entity, ha_server, groups, options<br>
HA_ITEM, Lounge_TV, switch, lounge_tv, ha_house, groups<br>
<br>
<br>
Regards<br>
Giles<br>
<br>
<br>
<div>On 04/12/2024 21:47, Spencer Ryan
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Neither. Insteon
(PLM)-->Misterhouse<--MQTT-->HomeAssistant
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Someone from reddit gave me some code they built to do most
of this, and I'm about to go down the rabbit hole</div>
<div><br>
</div>
<div>Here is the email from the guy along with the code he
provided if anyone is curious</div>
<div><br>
</div>
<div><a href="https://pastebin.com/wRfJYWnV" target="_blank">https://pastebin.com/wRfJYWnV</a><br>
<br>
<a href="https://pastebin.com/fumbhVzw" target="_blank">https://pastebin.com/fumbhVzw</a><br>
<br>
<a href="https://pastebin.com/pvYnr37n" target="_blank">https://pastebin.com/pvYnr37n</a><br>
<br>
<a href="https://pastebin.com/378NETi8" target="_blank">https://pastebin.com/378NETi8</a><br>
<br>
<a href="https://pastebin.com/L05ax8vf" target="_blank">https://pastebin.com/L05ax8vf</a></div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sun, Dec 1, 2024 at 7:43 AM
Giles Godart-Brown <<a href="mailto:ggo...@gm..." target="_blank">ggo...@gm...</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p><font size="4" face="Calibri">Ryan</font></p>
<p><font size="4" face="Calibri">How are you doing this?</font></p>
<p><font size="4" face="Calibri">Device > MQTT >
Misterhouse <br>
</font></p>
<p><font size="4" face="Calibri">OR</font></p>
<p><font size="4" face="Calibri">Device > MQTT > Home
Assistant > Misterhouse</font></p>
<p><font size="4" face="Calibri">If its the former then
please see <a href="https://github.com/hollie/misterhouse/wiki/Items-mqtt" target="_blank">https://github.com/hollie/misterhouse/wiki/Items-mqtt</a></font></p>
<p><font size="4" face="Calibri">Your items.mht will need
something like</font></p>
<p><font size="4" face="Calibri"><snip><br>
#########################################################################################################<br>
# MQTT setup<br>
#########################################################################################################<br>
MQTT_BROKER, mqtt_1, , 192.168.100.64<br>
MQTT_DISCOVERY, mqtt_disc_mqtt1, homeassistant,
mqtt_1, publish</font></p>
<p><font size="4" face="Calibri">#########################################################################################################<br>
# MQTT devices<br>
#########################################################################################################<br>
</font><font size="4" face="Calibri">MQTT_DEVICE,
Workshop_fingerprint, Workshop|tasmota_fingerprint
,mqtt_1, tele/Workshop_fingerprint/SENSOR<br>
CODE,
$Workshop_fingerprint->{states_casesensitive} = 1;<br>
</snip></font></p>
<p><font size="4" face="Calibri">Then every time something
publishes a message to </font><font size="4" face="Calibri">tele/Workshop_fingerprint/SENSOR your MH
object </font><font size="4" face="Calibri">Workshop_fingerprint->{state}
will be set to the message. <br>
You may need to decode this as its likely to be JSON</font></p>
<p><font size="4" face="Calibri">Note you can also use
wildcards e.g. <br>
<snip><br>
MQTT_DEVICE, MQTT_LWT, , mqtt_1, tele/+/LWT<br>
</snip></font></p>
<p><font size="4" face="Calibri">If its the latter, then you
need to use HA_ITEM and MQTT_LOCALITEM</font></p>
<p><font size="4" face="Calibri">Let me know if this helps<br>
</font></p>
<p><font size="4" face="Calibri">Giles<br>
</font></p>
<div>On 30/11/2024 18:48, Spencer Ryan wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">A timely email from Giles earlier today.
<div><br>
</div>
<div>After my house was almost hit by lightning a few
months ago and frying a lot of stuff I finally got
around to rebuilding my Raspberry Pi's. </div>
<div><br>
</div>
<div><br>
</div>
<div>I'm all Insteon, and I wanted to give HomeAssistant
another go after trying it 5+ years ago, spoiler
alert, it's Insteon support still is awful.</div>
<div><br>
</div>
<div>I'd like to keep MH doing all of the PLM and scene
building work, Someone on reddit gave me some code to
interface between the two but I'm looking for some
pointers on getting MH set up with MQTT from scratch.
I don't see a lot (or any?) real documentation on it.</div>
<div><br>
</div>
<div>Any pointers?</div>
</div>
<br>
<fieldset></fieldset>
<br>
<fieldset></fieldset>
<pre>________________________________________________________
To unsubscribe from this list, go to: <a href="https://lists.sourceforge.net/lists/listinfo/misterhouse-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/misterhouse-users</a>
</pre>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
<br>
</div>
</blockquote></div>
</div></blockquote></body></html> |