9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] 9p on kasa smart plugs
@ 2025-01-16 17:56 Ron Minnich
  2025-01-16 20:47 ` adventures in9
  0 siblings, 1 reply; 6+ messages in thread
From: Ron Minnich @ 2025-01-16 17:56 UTC (permalink / raw)
  To: 9fans

John DeGood of mclock fame pointed me at this:
https://youtu.be/QHOu4RSxd2A?si=UBcPfBfMkVIBfSiv

Have not watched it all yet.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T7e46748858d9ab87-Mefb5ad6953b0a095978d15d7
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] 9p on kasa smart plugs
  2025-01-16 17:56 [9fans] 9p on kasa smart plugs Ron Minnich
@ 2025-01-16 20:47 ` adventures in9
  2025-01-16 22:49   ` Skip Tavakkolian
  0 siblings, 1 reply; 6+ messages in thread
From: adventures in9 @ 2025-01-16 20:47 UTC (permalink / raw)
  To: 9fans

My video!

It isn't 9P on the plug.  It just sort of translates between 9P
requests and sends out the JSON strings to the plugs.
With these, it may be possible to flash the firmware to something
natively 9P.  The original plugs ran an Atheros/Qualcomm router chip,
which I've done a few basic 9front kernels for.  These new ones use a
Realtek chip with an Arm Cortex-M, so probably something like Inferno
would be better there.

9P native on these devices would be nice, but this Kasa driver, and
the Wiz lightbulb driver I did previously, give a 9P layer that then
works across my home grid.  I run the file system off a Raspberry Pi
cpu server, and then I can access it from any computer in the house
with 9Front or Drawterm.

On Thu, Jan 16, 2025 at 10:39 AM Ron Minnich <rminnich@p9f.org> wrote:
> 
> John DeGood of mclock fame pointed me at this:
> https://youtu.be/QHOu4RSxd2A?si=UBcPfBfMkVIBfSiv
> 
> Have not watched it all yet.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T7e46748858d9ab87-M588b87977a3b4f1bcf57581b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] 9p on kasa smart plugs
  2025-01-16 20:47 ` adventures in9
@ 2025-01-16 22:49   ` Skip Tavakkolian
  2025-01-16 23:19     ` sirjofri
  0 siblings, 1 reply; 6+ messages in thread
From: Skip Tavakkolian @ 2025-01-16 22:49 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1684 bytes --]

I used a similar approach to put a filesystem facade on a digital camera
that only supported a TWAIN interface. File system hierarchy abstraction is
so much easier to work with, especially with the standard utilities. For
posterity sake I've put it up on github (I don't know if TWAIN is still a
thing now):

https://github.com/9nut/plan9cmd/tree/main/dcfs



On Thu, Jan 16, 2025 at 1:15 PM adventures in9 <adventuresin9@gmail.com>
wrote:

> My video!
>
> It isn't 9P on the plug.  It just sort of translates between 9P
> requests and sends out the JSON strings to the plugs.
> With these, it may be possible to flash the firmware to something
> natively 9P.  The original plugs ran an Atheros/Qualcomm router chip,
> which I've done a few basic 9front kernels for.  These new ones use a
> Realtek chip with an Arm Cortex-M, so probably something like Inferno
> would be better there.
>
> 9P native on these devices would be nice, but this Kasa driver, and
> the Wiz lightbulb driver I did previously, give a 9P layer that then
> works across my home grid.  I run the file system off a Raspberry Pi
> cpu server, and then I can access it from any computer in the house
> with 9Front or Drawterm.
>
> On Thu, Jan 16, 2025 at 10:39 AM Ron Minnich <rminnich@p9f.org> wrote:
> >
> > John DeGood of mclock fame pointed me at this:
> > https://youtu.be/QHOu4RSxd2A?si=UBcPfBfMkVIBfSiv
> >
> > Have not watched it all yet.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T7e46748858d9ab87-M2b0ffb4e384dfe3f74dfe7bc
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 3299 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] 9p on kasa smart plugs
  2025-01-16 22:49   ` Skip Tavakkolian
@ 2025-01-16 23:19     ` sirjofri
  2025-01-23 17:24       ` Robert Sherwood
  2025-01-23 21:29       ` Thaddeus Woskowiak
  0 siblings, 2 replies; 6+ messages in thread
From: sirjofri @ 2025-01-16 23:19 UTC (permalink / raw)
  To: 9fans

Related, I wish there was some smart home hub software based on 9p, which supports the common protocols (matter etc). That way, with a single rpi on your network, you could control it with any 9p device. That could be great for more complex automation, as well as long term statistics.

But to be fair, I don't own any smart home device, and I'm also not the person who wants to automate the home like that.

sirjofri

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T7e46748858d9ab87-M0459341dcd89fe560fdf685c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] 9p on kasa smart plugs
  2025-01-16 23:19     ` sirjofri
@ 2025-01-23 17:24       ` Robert Sherwood
  2025-01-23 21:29       ` Thaddeus Woskowiak
  1 sibling, 0 replies; 6+ messages in thread
From: Robert Sherwood @ 2025-01-23 17:24 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 972 bytes --]

I love the adventures in 9 videos! Inspired me to dig up an old laptop so I
could re-install plan9. They're very well done, and easy to share with the
curious, especially the new, more structured series.



On Thu, Jan 16, 2025 at 6:22 PM sirjofri <sirjofri+ml-9fans@sirjofri.de>
wrote:

> Related, I wish there was some smart home hub software based on 9p, which
> supports the common protocols (matter etc). That way, with a single rpi on
> your network, you could control it with any 9p device. That could be great
> for more complex automation, as well as long term statistics.
> 
> But to be fair, I don't own any smart home device, and I'm also not the
> person who wants to automate the home like that.
> 
> sirjofri

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T7e46748858d9ab87-M3b560379659de6a6a748c829
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 2250 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] 9p on kasa smart plugs
  2025-01-16 23:19     ` sirjofri
  2025-01-23 17:24       ` Robert Sherwood
@ 2025-01-23 21:29       ` Thaddeus Woskowiak
  1 sibling, 0 replies; 6+ messages in thread
From: Thaddeus Woskowiak @ 2025-01-23 21:29 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 2071 bytes --]

I have two Shelly dimmers and a four pack of Shelly wall plugs (relay with
current and voltage measurement) that use a well documented json protocol.
They connect using Wi-Fi or Bluetooth via an ESP which they provide
documentation on so you can flash your own firmware. Very DiY friendly and
low cost.

By default you can use the Shelly cloud with a phone app or point it at
your own "cloud" server.  They each have an internal web server you can use
to configure and operate the device without any external dependencies.
There's also http, UDP, and mqtt.

They can be completely commissioned out of the box via 9 without needing an
app or web browser if you connect to the default Wi-Fi access point served
by the ESP and use json commands over http. Unfortunately I could not get
my 9front laptop to connect due to a Wi-Fi association issue that needs to
be fixed.

There's an option where you can send/receive json strings via UDP so I
enabled that and use a script which bangs out a json string using aux/dial
and echo using the sys name in ndb. E.g. 'shelly brlights on' turns on my
bedroom lights.

I haven't looked into matter but supporting it sounds like it could be a
headache as it's one of those "open" standards that requires you to join a
foundation and pay a yearly fee.

On Thu, Jan 16, 2025, 6:22 PM sirjofri <sirjofri+ml-9fans@sirjofri.de>
wrote:

> Related, I wish there was some smart home hub software based on 9p, which
> supports the common protocols (matter etc). That way, with a single rpi on
> your network, you could control it with any 9p device. That could be great
> for more complex automation, as well as long term statistics.
> 
> But to be fair, I don't own any smart home device, and I'm also not the
> person who wants to automate the home like that.
> 
> sirjofri

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T7e46748858d9ab87-M6b06246d0ae416a56edcb422
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 3629 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-01-23 21:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-16 17:56 [9fans] 9p on kasa smart plugs Ron Minnich
2025-01-16 20:47 ` adventures in9
2025-01-16 22:49   ` Skip Tavakkolian
2025-01-16 23:19     ` sirjofri
2025-01-23 17:24       ` Robert Sherwood
2025-01-23 21:29       ` Thaddeus Woskowiak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).