Android at home products

Умный дом из старого смартфона или антипаттерны домашней автоматизации

Здравствуйте, дорогие читатели! Очередная история о том, как менеджер самого среднего звена, сдувая пыль с залежавшихся железок на полке, творит такое, от чего у профессионалов всех мастей боль в глазах. ¡Но, это работает, amigo!

Признаюсь, в этот раз я все хотел сделать правильно. Взял Raspbery Pi с полки. Пирожок тот самый, что я уже использовал в своем роботе-газонокосилке: ссылка на пост и ссылка на другой пост. Взял mosquitto, все должно было работать на mqtt, но от себя никуда не убежишь. Под катом море граблей, велосипедов, плохой пайки, сплошной ад для перфекциониста.

Все началось с желания дополнить мой проект Noorik, который я поставил себе на ворота. Если коротко — это DIY решение для GSM блока открытия ворот.
Для открытия ворот достаточно замкнуть определенные контакты на плате.

Заменил arduino на esp8266 и сделал веб-интерфейс с кнопкой открытия. Это оказалось интересно, но дальше я захотел единый интерфейс для открытия откатных ворот, гаражных секционных ворот и калитки.

Когда я стал расписывать все свои хотелки, оказалось, что мне нужно так же:

  1. система управления котельной
  2. охранная система
  3. мобильный интерфейс к камерам видеонаблюдения
  4. данные о температуре в доме и на улице

Бэкенд

Малинка работала нормально, но при очередном включении просто перестала включаться. Светодиод питания сначала загорается, затем плавно за 3-5 секунд гаснет, сильно греется элемент (polyfuse T075) около гнезда питания. А тут уже руки чесались применить mqtt, блэкджер, пригласить куртизанок и прочие прелести.

Не беда, благо своей участи ждал другой пациент. Orange pi zero в студию. Сколько я не мучился с этим чудом китайской мысли — вдохнуть жизнь в такой маленький пирожок оказалось делом выше моих сил. Я скачивал прошивки на официальном и левых сайтах, я покупал прошивки с рук и обменивал на криптовалюту. Думаю, мне просто попался бракованный образец.

Я понял, что сама судьба толкает меня в объятья велосипедостроительства, и что уж скрывать радость, я окунулся в это занятие с головой.

Первым делом я решил использовать как головное устройство (брокер, сервер) видавший виды смартфон. Знаете эти старые вещи просто так не уходят. Им пользовался я, жена, дочь, потом я управлял с этого смартфона своим роботом-снегоуборщиком, я пытался утопить его в реке( до Москвы-реки я так и не добрался, но в родной Пахре эта труба навела шороху). И вот она — новая жизнь для Samsung Galaxy S3.

Установил на смартфон Palapa Web Server и Ftp-сервер. Идея простая в базе данных MySQL всего три таблицы: values, logs, rules.

  • В таблице values пары ключ/значение.
  • В таблице logs история изменений значений.
  • В таблице rules правила изменения одних ячеек в зависимости от значения в других.

Все это хозяйство обслуживает один скрипт php, который по http запросу записывает или выдает данные из базы, а так же обслуживает правила по расписанию.
Я даже не понимаю какой должен быть уровень программирования, чтобы человек захотел это увидеть, но я готов показать Вам код — пишите в ЛС.

Фронтенд

Не кидайте в меня камни, я признаюсь сам. Я использовал Bootstrap. Да, грешен.
Первоначальной мыслью было обернуть все это через Phonegap и получить полноценное приложение. Скажу больше я так и сделал, но в итоге более работоспособной оказалась online-версия. Себе и жене на телефоне просто сделал ярлык на рабочем столе для открытия нужной странице по внутреннему ip.

Каждый элемент реагирует на событие нажатие + проверяется состояние ajax запросами на сервер и изменяется в случае необходимости. Очень удобно, так как видишь все изменения, которые вступили в силу по правилу или сделаны другим пользователем.
Собственно, код по запросу без проблем.

ESP-8266

Я пробовал разные модули и чистый ESP-8266. В итоге самым удобным вариантом оказался модуль LOLIN V3.

Питание с помощью импульсных блоков питания.

Модули для ворота требовали реле и у меня были опасения, что контактные реле будут срабатывать. В итоге работют и твердотельные и контактные. Проблема с тем, что большое количество модулей даже без маркировки об этом являются low-triggered.

При включении модуля происходит кратковременное открытие, которые приводит к непроизвольному открытию при включении питания. Решается подтяжкой к нулю и объявлением состояния до объявления типа выхода.

В итоге модуль для гаража в сборе выглядит так. PIR-датчик для определения движения аккуратно вгрызан в родную обшивку.

Читайте также:  Tensorflow lite android gpu

В котельной у меня котел очень простой и ни о какой сложной автоматике и речи не идет.

При этом каждый контур обслуживает отдельный насос.

Последовательно с автоматами были включены реле для управления насосами и котлом.

Аккуратно впихивает все хозяйство в щиток.

Прошивка

Решил использовать для прошивки Arduino IDE, чтобы не связываться с nodemcu и lua. В интернете и на GT в частности огромное количество информации для начинающих.
Из интересного, мне кажется, функция соединения с wifi. Дело в том, что у меня в доме 4 сети wifi и может добавиться. Чтобы жестко не задавать название сети предварительно проводим сканирование доступных сетей.

При включенном автоматическом режиме котельной по расписанию проверяется температура на улице и температура теплоносителя.

  • При температуре ниже 14*С включается теплый пол первого этажа.
  • При температуре ниже 4*С включаются все контуры.

Температура теплоносителя выбирается по таблице в зависимости от сечения труб и уличной температуры. При достижении необходимой комнатной температуры котел выключается. Ко всему применен некий гестерезис для сглаживания переходных значений.

Система охраны работает еще проще. В таблице есть правило о том, что при включенной системе охраны, если обнаружено движение у одного из PIR-датчиков происходит отправка SMS через API одного из сервисов.

Планы

  • создание online-версии на удаленном сервере и синхронизация изменений для возможности удаленного управления.
  • Отображения данных с GSM/GPS маячков в машине;
  • Открытие ворот при появлении наших машин в определенной зоне;
  • Подключение к системе пультовой охраны;

Голосование по фото. Какой проект делать следующим?

Источник

The 7 best new smart home gadgets we saw at CES 2021

It’s no secret that we’ve all been trapped at home much more than usual over the past year. Because of this, making your home as smart as possible has been essential. We saw a ton of tech at the all-virtual CES 2021, but our roundup here of the best new smart home products might be the biggest deal for our home-bound readers.

Keep in mind that having a smart home at all is still a relatively new concept. We saw lots of very popular OEMs only launching their first-ever smart doorbells, lighting solutions, and smart speakers this year. However, smart lights and smart plugs are hardly exciting.

With this list, we wanted to focus on not only the best gear but also some of the most interesting. There are a couple of products here that are basically fancy prototypes, but give us a glimpse into what the smart home of the future might be like.

Hex Security has won Android Authority‘s CES 2021 Top Picks Award for Best Smart Home Innovation. Check out all the awards here.

The idea of a smart security system is nothing new. However, there’s a whole lot new with a system called Hex from a company called Origin Wireless AI.

Hex uses Wi-Fi signal waves to detect motion throughout your home. Imagine if Wi-Fi was like water and your home was filled with it. If someone entered your home, their movements would cause ripples and waves through the liquid. Hex picks up on those “ripples” and then alerts you to them if you aren’t at home.

This is advantageous over other security systems in a few ways. First, it’s much easier to set up Hex than it would be a camera system. With Hex, you simply plug a node into an outlet, connect the hub to your home Wi-Fi and… that’s it. The app takes care of the rest.

Additionally, traditional motion sensors are very binary — they either detect motion or they don’t. Hex allows for you to have some nuance with your alerts. For example, if your robot vacuum is at work in your home, your motion detecting system might go off. With Hex, you can program it to ignore the vacuum’s specific “ripple” signature, thus preventing false alarms.

This is an approach to home security we’ve never seen before, and one of the best smart home gadgets at CES this year. Hex will be available to consumers this spring starting at $180. There will also be a 24/7 monitoring service, but that’s an optional purchase for those who don’t want the hassle of setting up their own self-monitoring.

Ohmni Robot

This is one of the CES 2021 smart home products that takes a bit of imagination. Ohmni describes its flagship product as a “telepresence robot that transforms how people connect.” Our synopsis would be a lot simpler: it’s like a tablet on wheels.

Читайте также:  Acer launcher для android

Essentially, the Ohmni Robot can freely move throughout a space, not unlike a robot vacuum. The robot’s “face” is a tablet, one which a user can connect to from anywhere around the globe. In the video above, a father uses the Ohmni Robot to hang out with his family while he’s on a trip elsewhere in the world.

This might be the next logical step from what we’re already doing all the time: conducting dozens of video calls each week with our friends and family. With an Ohmni Robot though, you wouldn’t be restricted by where a caller’s laptop or phone happens to be. You can just move around and engage how you like.

In addition, the Ohmni Robot is great for telehealth visits, elderly and child care, and even education. You’d just need to get over the idea that there’s a kind-of-creepy tablet stick rolling around your living room. Still, this is easily one of the best smart home gadgets we saw this year.

LG WashTower

Sometimes the best ideas don’t need to be as revolutionary as Wi-Fi wave detection or communication robots. Sometimes the best innovations are when someone takes something we do all the time and makes it a little bit better or a little more efficient.

Enter the LG WashTower. On the outside, it seems like your usual washer/dryer tower — and it is — but there are a few things about it that elevate it above the fray.

First, there is one control panel for both systems. This keeps all the controls in one easily accessible place, rather than having the dryer controls on top and the washer controls in the middle. Now, everything’s in the middle.

With all the controls in one area, it allows the two systems to work better together. I know that sounds like an obvious thing because of course the washer and dryer should work together, but LG is one of the pioneers in this area. The washer uses AI to determine what kind of load you are washing and then communicates that information to the dryer. That makes it so when you load the damp clothes into the dryer, the dryer already knows how to most efficiently and safely dry them.

LG WashTower has won Android Authority‘s CES 2021 Top Picks Award for Best Smart Home Product. Check out all the awards here.

As with all LG products with the ThinQ branding, the WashTower uses its AI smarts to learn your washing trends. The goal is for you to simply toss your clothes into the washer and hit one button and know that everything is going to come out perfect.

LG didn’t announce a price or release date for the new laundry system, but it will likely land in the $2,000 range.

Toto Wellness Toilet

Speaking of things we all do all the time — yeah, we’re going to talk about toilets. Toto is the world’s largest plumbing manufacturer and the undisputed leader in toilets. At CES 2021, the company announced a slew of bathroom-related smart gear, but the innovative Wellness Toilet really grabbed our attention.

So get this: every time you sit on this toilet, it scans your body and “key outputs” (Toto’s words, not ours, but I wish I came up with that). Using this data, Toto’s app will then alert the user if there are any health anomalies present. It can even make recommendations for what actions you might take to help alleviate any problems.

If this seems unsettling to you, keep in mind that all Toto is doing here is making your toilet into a health tracker. The only difference is that instead of monitoring your pulse and movements, it’s monitoring your — you know — “outputs.” For health-conscious people, that could bring valuable information that no fitness tracker could ever provide.

Unfortunately, this is one of those barely-out-of-prototype ideas. Toto says it hopes to bring the Wellness Toilet to consumers “in the next several years.” As such, we have no idea how much this would cost or when you’d be able to get it. It’s still one of the best smart home gadgets we saw at CES 2021, though. It might even be my favorite — or at least my number two.

Читайте также:  Event from button in android

Igloohome Smart Keybox 3

This is another one of those products that seem pretty benign at first glance. At its core, the Igloohome Smart Keybox 3 is a smart padlock. Using the touch screen interface, you can enter a PIN which opens up the lock to reveal the contents therein. Big whoop, right?

The real innovation here is how the owner can issue new codes to the lock without being anywhere near it — and without the lock being connected to Wi-Fi. Seriously!

Igloohome attempts to explain the process on its website, which honestly still left me confused. But, according to the website, you can give out unique codes that do specific things on your specific lock without the need to physically touch the lock at all. This would allow you to, for example, give out a code to a maintenance person so they could enter your home while you are away. But, as soon as they leave, that code would never work for them again.

This would be one of the best smart home products for a person who rents out an Airbnb, owns a vacation home, or has a housecleaner who regularly visits. It would allow you to have complete control over who gets access to the lock and for how long.

The Smart Keybox 3 is available now at a price of $189.

Alarm.com Flex IO

Finally, we have the Alarm.com Flex IO sensor system. The idea for the product is really straightforward. You attach the sensor system to a wall and the node to a door. When the door opens and the node separates from the sensor, you get an alert on your phone.

However, the kicker is that you can put this totally wireless device pretty much anywhere. You’re able to do that because it is battery-powered and relies on an LTE signal for its data connection, not Wi-Fi.

The battery inside should last for about two years, according to Alarm.com. When it starts running low, the Alarm.com companion app will notify you as such so you can replace it.

As for the LTE connection, you will need to connect it to either your Verizon or AT&T account. However, this is a great solution for folks who want to keep tabs on something like a barn where Wi-Fi and power access could be more of a hassle than just buying this one-time solution.

The Alarm.com Flex IO is available now for $250.

MyQ Pet Portal

If you’re a pet owner and a tech fiend, you likely already have something like a pet camera in your home. Now, though, MyQ is taking things one step further and introducing a smart pet door. This device will allow you to let your pet outside even when you’re not at home.

The MyQ Pet Portal comes pre-installed on a limited selection of Kolbe doors. Inside the door is an elevator-style panel that opens or closes. There are also two cameras: one on the inside and one on the outside.

Your dog wears a Bluetooth-enabled tracker while you are away. When the dog approaches the pet door, your phone alerts you to their presence. You can then check the camera and see that they are waiting to head outside. With a tap in the app, the door opens and your dog can head on outside. When they are ready to come back in, your phone will get another alert and you can re-open the door. No dog sitter needed!

If you trust your dog, you can even set it up in the app so the door will automatically open or close if the dog gets near it. This eliminates all the hassle on your end.

The downside to this nifty new product is the cost. Since the device comes pre-installed in a Kolbe door, the lowest price you’ll pay for one is $3,000. There’s even a $4,500 model. However, that price includes white-glove installation, so at least you don’t need to worry about that.

The best new smart home products at CES 2021

Those are six of the best smart home products from CES this year. Stay tuned for our full roundup where one of the items on this list will win our CES 2021 Top Picks award! In the meantime, check out some of our other specific roundups below.

Источник

Оцените статью