this post was submitted on 26 Oct 2023
1 points (100.0% liked)

Lisp

53 readers
3 users here now

founded 1 year ago
MODERATORS
 

So I was working on and off on this project for the last months. I use it now in production on a Raspberry Pi, so I thought I could announce its existence.

There are a lot of rough edges but useable. Maybe interesting for you.

https://github.com/mdbergmann/cl-hab

top 11 comments
sorted by: hot top controversial new old
[–] svetlyak40wt@alien.top 1 points 1 year ago (1 children)

Great! I want to try it as a replacement to Home Assistant!

Is there a way to retrieve data from Aquara Hub or plug in a WiFi controlled smart-lamps?

[–] mdbergmann@alien.top 1 points 1 year ago

Stuff like this would be implemented as 'binding'. It can probably be implemented utilizing the base-binding and just implementing push and pull, in a separate package. But eventually there should be proper generic functions protocol for bindings.

[–] KaranasToll@alien.top 1 points 1 year ago (1 children)

Cool project. mdbergman.home-automation-bus or even mdbergman.hab would be a better name for this sytem.

[–] mdbergmann@alien.top 1 points 1 year ago (1 children)

Not sure I want my name in there.

[–] KaranasToll@alien.top 1 points 1 year ago (1 children)

To prevent it from conflicting with someone elses project. The CL prefix isn't useful at all in the system name because all asdf systems are within common lisp. A lot of different projects could end up with the acronym or abbreviation HAB. It is best to just use your own namespace.

[–] mdbergmann@alien.top 1 points 1 year ago (1 children)
[–] arthurno1@alien.top 1 points 1 year ago (1 children)

I agree that cl- prefix or -cl suffix is probably not the best idea for a project name, there are already loads of those seems like, I would agree with you that a personal name is not the best idea either. I would rather use something more descriptive that makes people understand what it is about when they see it in a web search or stumble upon it on Github.

Cool project by the way; thanks for sharing.

[–] mdbergmann@alien.top 1 points 1 year ago (1 children)

I'm a bit torn. I agree that if you have a proper project name it shouldn't require the 'cl-' prefix. On the other hand, the prefix seems to be a common Common Lisp library prefix.

[–] arthurno1@alien.top 1 points 1 year ago (1 children)

the prefix seems to be a common Common Lisp library prefix.

Yes it is, but is that important?

I would think of what is the target audience. If it is a general home automation crowd, for them the programming language used is just an implementation detail, not the major reason to choose the project.

Of course, the name is not the most important thing either, it was just my reflection since the discussion was about it.

[–] mdbergmann@alien.top 1 points 1 year ago

Right now I don’t think this will be a big thing for other crowd than the CL home automation. So for now cl-hab seems like ok for me. If it grows it will be good to rename it.

[–] fvf@alien.top 1 points 1 year ago

Having hacked a bit on Home Assistant, it's impossible to not want a CL variant of the same. Stopping and restarting your "house" umpteen times for every little change is such a ridiculous development cycle.