Re: [mh] MH & HA - Integration? Migration?
H Plato <[email protected]> Mon, 25 Mar 2024 09:27:21 -0600
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <[email protected]> |
--===============2761893202642195910== Content-Type: multipart/alternative; boundary="Apple-Mail=_D0BEEE62-013D-41A0-9372-659828F16DC0" --Apple-Mail=_D0BEEE62-013D-41A0-9372-659828F16DC0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 That=E2=80=99s my thinking as well. Get separation with devices and = logic, and have MH as the automation engine. I=E2=80=99ve used Node Red = before, but as Dave mentioned, I=E2=80=99m also old and the automation = and perl rules works really well. MH just doesn=E2=80=99t have the = device support and interface optimizations. =20 Once everything is separated and virtualized, then other options like = migrating logic to another platform could be simplified. Good advice = though, I=E2=80=99ll ignore the yaml and look to automate later. > On Mar 25, 2024, at 9:19 AM, Dave Neudoerffer <[email protected]> = wrote: >=20 > I have tried yaml, nodered and app daemon (python code) for = automations in HA. But I am old, and have worked on my perl code in MH = for a lot of years. Now all that code still works great even with the = devices in HA. =20 >=20 > My son ended up doing his HA automations using the websocket API from = a program he wrote in RUST (after also trying most of the HA automation = options). I am just fine doing them in perl, and MH seems like a = reasonable place to host them.=20 >=20 > On Mon, Mar 25, 2024, 11:05=E2=80=AFAM Dean Junk <[email protected] = <mailto:[email protected]>> wrote: > I used MH for about 15 years and built a lot of code specific for my = needs. My biggest recommendation is to skip putting automations in the = yaml files. Use node red, it=E2=80=99s by far the easiest way to = migrate. I spent 2 weeks trying to convert using yaml and finally gave = up. I installed node red and spent 1 day getting to know it and then = spent 1 day converting everything I had custom in MH. HA is great but = lacks saving states when restarted, otherwise I find it much superior to = MH. The number of devices it supports is amazing!=20 >=20 > Good luck! >=20 > Sent from my iPad >=20 >> On Mar 25, 2024, at 9:35=E2=80=AFAM, Dave Neudoerffer = <[email protected] <mailto:[email protected]>> wrote: >>=20 >> =EF=BB=BF >> I have worked on this quite a bit over the past several months. I = have 3 separate HA/MH installations. I have been using MH for many = years, but my son convinced me to add HA into the mix, for exactly the = reasons you state. =20 >>=20 >> As I did a lot of the work on MQTT for MH, I started with an MQTT = solution. However, HA does not publish discovery nor support commands = on its entities via MQTT. So I used the REST API to get a round trip = -- commands and some discovery via the REST API, state change via MQTT. = This was pretty clumsy still. So I have more recently implemented a = fairly simple HA_Item.pm module that uses the HA Websocket API -- the = websocket API hooks right into the event bus in HA, so you get = everything. I was giving it some time to settle, and wasn't sure = whether anyone else would be interested, but I am happy to share the = module. Or I could put together an MH push, but that would take me a = day or two. >>=20 >> Dave >>=20 >> On Mon, Mar 25, 2024 at 9:46=E2=80=AFAM H Plato <[email protected] = <mailto:[email protected]>> wrote: >> Hello, >>=20 >> Is anyone using Home Assistant (HA)? I=E2=80=99ve recently picked = up a new new devices, and it is impressive the amount of device support = available in HA. I=E2=80=99d rather spend my time setting up automations = than developing device modules. So I=E2=80=99m thinking about running = them in parallel, as my MH instance has lots of logic that I don=E2=80=99t= know how to replicate in HA, as well as speech for home events, = watering moisture calculations, etc=E2=80=A6 HA would be a contained VM = that would hold the devices and maybe the user interface. I mainly use = the floorplan IA7 interface, and I haven=E2=80=99t seen that in HA yet. >>=20 >> Both MH and HA use MQTT, so that could be a communication option, = or using web calls. I also have some older tech that still works fine = (weeder and W800), which I=E2=80=99ll have to figure out. My hardware is = also old, so I=E2=80=99m seeing this as an opportunity to architect a = bit more of a better solution, by virtualizing everything.=20 >>=20 >> Anyone gone down any of these paths? >>=20 >> ________________________________________________________ >> To unsubscribe from this list, go to: = https://lists.sourceforge.net/lists/listinfo/misterhouse-users = <https://lists.sourceforge.net/lists/listinfo/misterhouse-users> >>=20 >> ________________________________________________________ >> To unsubscribe from this list, go to: = https://lists.sourceforge.net/lists/listinfo/misterhouse-users = <https://lists.sourceforge.net/lists/listinfo/misterhouse-users> >>=20 --Apple-Mail=_D0BEEE62-013D-41A0-9372-659828F16DC0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" = class=3D"">That=E2=80=99s my thinking as well. Get separation with = devices and logic, and have MH as the automation engine. I=E2=80=99ve = used Node Red before, but as Dave mentioned, I=E2=80=99m also old and = the automation and perl rules works really well. MH just doesn=E2=80=99t = have the device support and interface optimizations. <div = class=3D""><br class=3D""></div><div class=3D"">Once everything is = separated and virtualized, then other options like migrating logic to = another platform could be simplified. Good advice though, I=E2=80=99ll = ignore the yaml and look to automate later.</div><div class=3D""><br = class=3D""></div><div class=3D""><div><br class=3D""><blockquote = type=3D"cite" class=3D""><div class=3D"">On Mar 25, 2024, at 9:19 AM, = Dave Neudoerffer <<a href=3D"mailto:[email protected]" = class=3D"">[email protected]</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"auto" = class=3D"">I have tried yaml, nodered and app daemon (python code) for = automations in HA. But I am old, and have worked on my perl code in MH = for a lot of years. Now all that code still works great even with the = devices in HA. <div dir=3D"auto" class=3D""><br = class=3D""></div><div dir=3D"auto" class=3D"">My son ended up doing his = HA automations using the websocket API from a program he wrote in RUST = (after also trying most of the HA automation options). I am just fine = doing them in perl, and MH seems like a reasonable place to host = them. </div></div><br class=3D""><div class=3D"gmail_quote"><div = dir=3D"ltr" class=3D"gmail_attr">On Mon, Mar 25, 2024, 11:05=E2=80=AFAM = Dean Junk <<a href=3D"mailto:[email protected]" = class=3D"">[email protected]</a>> wrote:<br class=3D""></div><blockquote= class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc = solid;padding-left:1ex"> <div dir=3D"auto" class=3D""> I used MH for about 15 years and built a lot of code specific for my = needs. My biggest recommendation is to skip putting automations in the = yaml files. Use node red, it=E2=80=99s by far the easiest way to = migrate. I spent 2 weeks trying to convert using yaml and finally gave up. I installed node red and spent 1 day getting to know it and = then spent 1 day converting everything I had custom in MH. HA is great = but lacks saving states when restarted, otherwise I find it much = superior to MH. The number of devices it supports is amazing! <div class=3D""><br class=3D""> </div> <div class=3D"">Good luck!</div> <div class=3D""><br = id=3D"m_473772874014208889lineBreakAtBeginningOfSignature" class=3D""> <div dir=3D"ltr" class=3D"">Sent from my iPad</div> <div dir=3D"ltr" class=3D""><br class=3D""> <blockquote type=3D"cite" class=3D"">On Mar 25, 2024, at 9:35=E2=80=AFAM, = Dave Neudoerffer <<a href=3D"mailto:[email protected]" = target=3D"_blank" rel=3D"noreferrer" = class=3D"">[email protected]</a>> wrote:<br class=3D""> <br class=3D""> </blockquote> </div> <blockquote type=3D"cite" class=3D""> <div dir=3D"ltr" class=3D"">=EF=BB=BF <div dir=3D"ltr" class=3D"">I have worked on this quite a bit over the = past several months. I have 3 separate HA/MH installations. = I have been using MH for many years, but my son convinced me to add HA = into the mix, for exactly the reasons you state. <div class=3D""><br class=3D""> </div> <div class=3D"">As I did a lot of the work on MQTT for MH, = I started with an MQTT solution. However, HA does not publish = discovery nor support commands on its entities via MQTT. So I used = the REST API to get a round trip -- commands and some discovery = via the REST API, state change via MQTT. This was pretty clumsy still. = So I have more recently implemented a fairly simple HA_Item.pm module = that uses the HA Websocket API -- the websocket API hooks right into the = event bus in HA, so you get everything. I was giving it some time to settle, and wasn't sure whether anyone else would be = interested, but I am happy to share the module. Or I could put = together an MH push, but that would take me a day or two.</div> <div class=3D""><br class=3D""> </div> <div class=3D"">Dave</div> </div> <br class=3D""> <div class=3D"gmail_quote"> <div dir=3D"ltr" class=3D"gmail_attr">On Mon, Mar 25, 2024 at 9:46=E2=80=AF= AM H Plato <<a href=3D"mailto:[email protected]" target=3D"_blank" = rel=3D"noreferrer" class=3D"">[email protected]</a>> wrote:<br = class=3D""> </div> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px = 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> Hello,<br class=3D""> <br class=3D""> Is anyone using Home Assistant (HA)? I=E2=80=99ve recently picked = up a new new devices, and it is impressive the amount of device support = available in HA. I=E2=80=99d rather spend my time setting up automations = than developing device modules. So I=E2=80=99m thinking about running them in parallel, as my MH instance has lots of logic that I don=E2=80=99= t know how to replicate in HA, as well as speech for home events, = watering moisture calculations, etc=E2=80=A6 HA would be a contained VM = that would hold the devices and maybe the user interface. I mainly use the floorplan IA7 interface, and I haven=E2=80=99t seen that in HA = yet.<br class=3D""> <br class=3D""> Both MH and HA use MQTT, so that could be a communication option, = or using web calls. I also have some older tech that still works fine = (weeder and W800), which I=E2=80=99ll have to figure out. My hardware is = also old, so I=E2=80=99m seeing this as an opportunity to architect a bit more of a better solution, by virtualizing everything. <br = class=3D""> <br class=3D""> Anyone gone down any of these paths?<br class=3D""> <br class=3D""> ________________________________________________________<br class=3D""> To unsubscribe from this list, go to: <a = href=3D"https://lists.sourceforge.net/lists/listinfo/misterhouse-users" = rel=3D"noreferrer noreferrer" target=3D"_blank" class=3D""> https://lists.sourceforge.net/lists/listinfo/misterhouse-users</a><br = class=3D""> <br class=3D""> </blockquote> </div> <span = class=3D"">________________________________________________________</span>= <br class=3D""> <span class=3D"">To unsubscribe from this list, go to: <a = href=3D"https://lists.sourceforge.net/lists/listinfo/misterhouse-users" = target=3D"_blank" rel=3D"noreferrer" = class=3D"">https://lists.sourceforge.net/lists/listinfo/misterhouse-users<= /a></span><br class=3D""> <span class=3D""></span><br class=3D""> </div> </blockquote> </div> </div> </blockquote></div> </div></blockquote></div><br class=3D""></div></body></html>= --Apple-Mail=_D0BEEE62-013D-41A0-9372-659828F16DC0-- --===============2761893202642195910== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============2761893202642195910== 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 --===============2761893202642195910==--