micro-nova / AmpliPi

Whole House Audio System 🔊
https://amplipi.com
GNU General Public License v3.0
287 stars 23 forks source link

Add AmpliPi interface to Sonoff Touch Panel #298

Closed linknum23 closed 2 years ago

linknum23 commented 2 years ago
linknum23 commented 2 years ago

Lots of info can be found in this thread: https://community.home-assistant.io/t/sonoff-nspanel-smart-scene-wall-switch-by-itead-coming-soon-on-kickstarter/332962/48

brianhealey commented 2 years ago

Are you planning on using espHome or directly interfacing with the ampliPi?

linknum23 commented 2 years ago

For the initial port we are interfacing with it directly (using micropython) but we are open to integrating with esphome as well.

On Sat, Mar 5, 2022, 11:28 brianhealey @.***> wrote:

Are you planning on using espHome or directly interfacing with the ampliPi?

— Reply to this email directly, view it on GitHub https://github.com/micro-nova/AmpliPi/issues/298#issuecomment-1059792163, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEZPO2EDOHMXZEHSZODY5DU6ODT3ANCNFSM5PFOR5LQ . You are receiving this because you authored the thread.Message ID: @.***>

yoggiland commented 2 years ago

Hi, I understand that there are two versions, a US and an EU. From what I read they are different do to screen rotation etc. see link.

https://community.openhab.org/t/nxpanel-replacement-firmware-for-sonoff-nspanel/132869/72 https://community.openhab.org/t/nxpanel-replacement-firmware-for-sonoff-nspanel/132869

I am guessing you have the US version, do you think your current approach (using micropython) will work with the EU version?

yoggi

linknum23 commented 2 years ago

We don't have an EU version on hand yet but it looks like it UI will just need a couple of layout changes from the US version. The EU and US versions share the same hardware, just with different power inputs and display resolutions orientations. The backend running on micropython will hopefully be the exact same.

EDIT: The display is identical, albeit in a horizontal orientation with buttons below the screen

rickballard commented 2 years ago

When do you guys expect to be able to sell some of these wonderful wall keypads, to eager customers, like myself? Can you be persuaded to sell off some of your prototypes for testing...?

linknum23 commented 2 years ago

Based on where we are right now (a working prototype). I would guess we will have the code available in a month for those that want to load the code on the devices themselves.

As for the having them on our website with a finalized AmpliPi touch interface, I would guess they would be available in 3-6 months.

On Fri, Mar 25, 2022, 15:10 Rick Ballard @.***> wrote:

When do you guys expect to be able to sell some of these wonderful wall keypads, to eager customers, like myself? Can you be persuaded to sell off some of your prototypes for testing...?

— Reply to this email directly, view it on GitHub https://github.com/micro-nova/AmpliPi/issues/298#issuecomment-1079350561, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEZPO3ICJANO6XSRB4V5I3VBYFT3ANCNFSM5PFOR5LQ . You are receiving this because you authored the thread.Message ID: @.***>

rickballard commented 2 years ago

You do realize that we are all loving you guys up here, like a feast for starving piglets...? :)

linknum23 commented 2 years ago

We are getting close to being able to sell these and will be making the related repo public in the next couple of days!

brianhealey commented 2 years ago

Let me know if you need a tester. I have the US version in hand and can flash it easily.

rickballard commented 2 years ago

Yes, please, a tester would be wonderful, thank you. It looks excellent.

I particularly like the WiFi-ness, as legacy Cat -wiring tends to make folks think of the keypad as being zone-specific, (even though this keypad can control all zones from a single location). You might sell more keypads if they can be set to display a default zone dashboard, then folks might buy one per zone instead.

Also, those hard-buttons are just itching to have a default smart-home purpose in life. Please consider this idea:

Post simple instructions, so folks can add the circuit out of a cheap Lutron On-Off Pico, to be operated by those two (spare) hard-buttons. This could add $100 in value to those folks who already have smart-lighting, at the cost of a few extra bucks for the Pico and 5-minutes of soldering/reassembly. Alternatively, you guys could more formally ask Lutron to let the keypad talk to their hub via WiFi, and then there would be no hacking necessary.

Those buttons are just itching to have a default smart-home purpose in life.

linknum23 commented 2 years ago

These touch panels are actually available for sale, now! Feel free to purchase one and let us know how it works.

As for the hard buttons: at the moment the hard buttons are able to control two led light circuits using twon onboard relays. The intent is that this could replace a single or dual light switch in your house simply by removing the switch and wiring in this wall panel in place. We are hoping to expose them as smart switches in the future so they can be controlled by something like home assistant.

Also, those hard-buttons are just itching to have a default smart-home purpose in life. Please consider this idea:

I'm not sure if connecting the output of one of the wallpanel's relays to a pico will do what you want. Hopefully we can add the Smart Home use case soon.

linknum23 commented 2 years ago

Does anyone know of a simple MQTT light interface that we can provide for the 2 relays? They don't have anything fancy just on/off capabilities.

Initially we are looking at implementing something to work with this: https://www.home-assistant.io/integrations/light.mqtt to start with.

brianhealey commented 2 years ago

I use homeassistant with the mqtt addon to run most of my tasmota devices. would that work? I already have the hardware in hand, just need to repo and instructions. :)

rickballard commented 2 years ago

OK, purchased, will let you know how it works up here in Canada. I plan to turn it into a weather-resistant remote, that rests in a dock on an outside wall. I can hide it inside in the winter, so the Polar Bears don't eat it, but it may have to cope with some hot and humid weather this summer. Thanks.

EDIT: AmpliPiSonoff wall-controller panel works very well. You guys did a great job!

First impressions:

  1. lots of greys. More colours, and optional colour schemes, would make it prettier, and perhaps match home decor.
  2. there is no "zones-active list" next to volume slider, so one can't always predict consequences of using volume slider.
  3. need to dim screen when not in use, or let it turn itself off.
  4. need an auto-setup option for the hard-buttons, so they show up in the Sonoff ewelink app.
  5. allow bluetooth link with smartphone, boot sequence seems to bypass the BT listen phase.
  6. flashing mute button if any zone is muted, it is so easy to leave a set of speakers on mute for weeks, until one quiet day when you notice someone faintly singing in the background...
  7. hard-button status bars along the bottom of the display should allow custom labels inside them.
  8. double-press and long-press of a hard-button, should enable max/min and dimmer features. Press concurrently should enable alarm macro.... Yeah, not an urgent feature, that one, but worth including eventually.
  9. swipe left and right is typically used to access setup panels and additional Sonoff smart-home apps, but this functionality seems to have been deleted by the latest software load.
  10. Needs an option for automatic software updates, obviously non-beta only.
  11. Display shows Playing On <Source 1> ... but <Source 1> should be a customizable label or smart-label, because otherwise it looks too prototypey.
  12. Need to print a simple Micro-Nova AmpliPiSonoff Wall Controller user-guide sheet, to include in the product packaging, along with the Sonoff user guide that talks about features likely deleted by the latest software load, (see note 9 above).
linknum23 commented 2 years ago

Looking at the panel specifications it is definitely intended for indoor use:

2022-06-02_641x291

Our biggest worry would be water getting in the unit and damaging it. You may want to consider an oversized outdoor outlet that can fit the wallpanel inside.The idea would be that you would put the outlet cover on when the unit is not in use. Something like this: https://www.hubbell.com/taymac/en/Products/Electrical-Electronic/Outdoor/Boxes-Covers-Plates/1-Gang-JUMBO-Weatherproof-In-Use-Cover-HorizontalVertical-16-in-1-4-34-in-Deep-Gray/p/1670838 but even bigger on the inside to fit the whole 5x3 inch panel.

Our second worry would probably be uver/under temp issues that could cause the electronics to fail. We don't have any suggestions for that.

linknum23 commented 2 years ago

Closing this since the panel's repo is public now. Check it out at http://github.com/micro-nova/AmpliPiWallPanel/