Re: [mh] MQTT/HomeAssistant
Spencer Ryan <[email protected]> Wed, 4 Dec 2024 16:47:13 -0500
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <CALWY-Ypr=8jiVb+bzB4aEot0+o+r2cAdKsbXmG4xRB+MRUuttg@mail.gmail.com> |
--===============0442146015537384979==
Content-Type: multipart/alternative; boundary="000000000000196cb6062878ba63"
--000000000000196cb6062878ba63
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Neither. Insteon (PLM)-->Misterhouse<--MQTT-->HomeAssistant
Someone from reddit gave me some code they built to do most of this, and
I'm about to go down the rabbit hole
Here is the email from the guy along with the code he provided if anyone is
curious
https://pastebin.com/wRfJYWnV
https://pastebin.com/fumbhVzw
https://pastebin.com/pvYnr37n
https://pastebin.com/378NETi8
https://pastebin.com/L05ax8vf
On Sun, Dec 1, 2024 at 7:43=E2=80=AFAM Giles Godart-Brown <ggodartbrown@gma=
il.com>
wrote:
> Ryan
>
> How are you doing this?
>
> Device > MQTT > Misterhouse
>
> OR
>
> Device > MQTT > Home Assistant > Misterhouse
>
> If its the former then please see
> https://github.com/hollie/misterhouse/wiki/Items-mqtt
>
> Your items.mht will need something like
>
> <snip>
>
> #########################################################################=
################################
> # MQTT setup
>
> #########################################################################=
################################
> MQTT_BROKER, mqtt_1, , 192.168.100.64
> MQTT_DISCOVERY, mqtt_disc_mqtt1, homeassistant, mqtt_1, publish
>
>
> #########################################################################=
################################
> # MQTT devices
>
> #########################################################################=
################################
> MQTT_DEVICE, Workshop_fingerprint, Workshop|tasmota_fingerprint ,mqtt_1,
> tele/Workshop_fingerprint/SENSOR
> CODE, $Workshop_fingerprint->{states_casesensitive} =3D 1;
> </snip>
>
> Then every time something publishes a message to tele/Workshop_fingerprin=
t/SENSOR
> your MH object Workshop_fingerprint->{state} will be set to the message.
> You may need to decode this as its likely to be JSON
>
> Note you can also use wildcards e.g.
> <snip>
> MQTT_DEVICE, MQTT_LWT, , mqtt_1, tele/+/LWT
> </snip>
>
> If its the latter, then you need to use HA_ITEM and MQTT_LOCALITEM
>
> Let me know if this helps
>
> Giles
> On 30/11/2024 18:48, Spencer Ryan wrote:
>
> A timely email from Giles earlier today.
>
> 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.
>
>
> 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 i=
s
> awful.
>
> 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 se=
e
> a lot (or any?) real documentation on it.
>
> Any pointers?
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists=
/listinfo/misterhouse-users
>
>
--000000000000196cb6062878ba63
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Neither. Insteon (PLM)-->Misterhouse<--MQTT-->Hom=
eAssistant<div><br></div><div><br></div><div><br></div><div>Someone from re=
ddit 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></d=
iv><div><a href=3D"https://pastebin.com/wRfJYWnV">https://pastebin.com/wRfJ=
YWnV</a><br><br><a href=3D"https://pastebin.com/fumbhVzw">https://pastebin.=
com/fumbhVzw</a><br><br><a href=3D"https://pastebin.com/pvYnr37n">https://p=
astebin.com/pvYnr37n</a><br><br><a href=3D"https://pastebin.com/378NETi8">h=
ttps://pastebin.com/378NETi8</a><br><br><a href=3D"https://pastebin.com/L05=
ax8vf">https://pastebin.com/L05ax8vf</a></div></div><br><div class=3D"gmail=
_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Sun,=
Dec 1, 2024 at 7:43=E2=80=AFAM Giles Godart-Brown <<a href=3D"mailto:gg=
[email protected]">[email protected]</a>> wrote:<br></div><block=
quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1=
px solid rgb(204,204,204);padding-left:1ex"><u></u>
=20
=20
=20
<div>
<p><font size=3D"4" face=3D"Calibri">Ryan</font></p>
<p><font size=3D"4" face=3D"Calibri">How are you doing this?</font></p>
<p><font size=3D"4" face=3D"Calibri">Device > MQTT > Misterhouse =
<br>
</font></p>
<p><font size=3D"4" face=3D"Calibri">OR</font></p>
<p><font size=3D"4" face=3D"Calibri">Device > MQTT > Home
Assistant > Misterhouse</font></p>
<p><font size=3D"4" face=3D"Calibri">If its the former then please see
<a href=3D"https://github.com/hollie/misterhouse/wiki/Items-mqtt" t=
arget=3D"_blank">https://github.com/hollie/misterhouse/wiki/Items-mqtt</a><=
/font></p>
<p><font size=3D"4" face=3D"Calibri">Your items.mht will need something
like</font></p>
<p><font size=3D"4" face=3D"Calibri"><snip><br>
###########################################################################=
##############################<br>
# MQTT setup<br>
###########################################################################=
##############################<br>
MQTT_BROKER, mqtt_1, ,=C2=A0=C2=A0=C2=A0 192.168.100.64<br>
MQTT_DISCOVERY, mqtt_disc_mqtt1,=C2=A0=C2=A0=C2=A0 homeassistant, m=
qtt_1,
publish</font></p>
<p><font size=3D"4" face=3D"Calibri">##################################=
#######################################################################<br>
# MQTT devices<br>
###########################################################################=
##############################<br>
</font><font size=3D"4" face=3D"Calibri">MQTT_DEVICE,
Workshop_fingerprint, Workshop|tasmota_fingerprint ,mqtt_1,
tele/Workshop_fingerprint/SENSOR<br>
CODE,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 $Worksh=
op_fingerprint->{states_casesensitive}
=3D 1;<br>
</snip></font></p>
<p><font size=3D"4" face=3D"Calibri">Then every time something publishe=
s
a message to </font><font size=3D"4" face=3D"Calibri">tele/Workshop=
_fingerprint/SENSOR
your MH object </font><font size=3D"4" face=3D"Calibri">Workshop_fi=
ngerprint->{state}
will be set to the message.=C2=A0 <br>
You may need to decode this as its likely to be JSON</font></p>
<p><font size=3D"4" face=3D"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=3D"4" face=3D"Calibri">If its the latter, then you need t=
o
use HA_ITEM and MQTT_LOCALITEM</font></p>
<p><font size=3D"4" face=3D"Calibri">Let me know if this helps<br>
</font></p>
<p><font size=3D"4" face=3D"Calibri">Giles<br>
</font></p>
<div>On 30/11/2024 18:48, Spencer Ryan
wrote:<br>
</div>
<blockquote type=3D"cite">
=20
<div dir=3D"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.=C2=A0</div>
<div><br>
</div>
<div><br>
</div>
<div>I'm all Insteon, and I wanted to give HomeAssistant anothe=
r
go after=C2=A0trying it 5+ years ago, spoiler alert, it's Ins=
teon
support still is awful.</div>
<div><br>
</div>
<div>I'd like to keep MH doing all of the PLM and scene buildin=
g
work, Someone on reddit gave me some code to interface between
the two but I'm looking for some pointers on getting MH set u=
p
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=3D"https://lists.sourceforge.=
net/lists/listinfo/misterhouse-users" target=3D"_blank">https://lists.sourc=
eforge.net/lists/listinfo/misterhouse-users</a>
</pre>
</blockquote>
</div>
</blockquote></div>
--000000000000196cb6062878ba63--
--===============0442146015537384979==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============0442146015537384979==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
--===============0442146015537384979==--