logo elektroda
logo elektroda
X
logo elektroda

Proprietary Smartbian home control system: Python, Raspberry Pi, ESP8266

szyman.marek 843 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18260064
    szyman.marek
    Level 2  
    Hello, I would like to show off my creation. It is a system that allows you to run scripts written in Python remotely on a Raspberry Pi device.

    There are many off-the-shelf products that you can control your smart home with, but I couldn't find one that had an application that met the conditions I had obviously implemented:
    - runs Python scripts on the Raspberry Pi device
    - an application that can be run in a browser, installed on an Android smartphone or iPhone
    - controls lighting via remote modules with wi-fi, e.g. ESP8266
    - presents the status of sensors (e.g. temperature, motion) in real time
    - allows image viewing from cameras via RTSP protocol
    - graphically displays the location of the modules corresponding to their actual position in the house

    In addition, I extended the application with a section WIKI in which I described step-by-step how to connect the application to the Raspberry Pi. In this section I have also included how to connect the modules together with the source code in Python and the ESP8266 Wi-fi modules in C. The communication developed is encrypted.

    I have included a short demonstration video of the use of the application:


    .
    And a picture of how I connected the remote relay to the lapmic:
    Proprietary Smartbian home control system: Python, Raspberry Pi, ESP8266 .

    I would like to know your opinions, what functionalities I could extend the system with, what needs improvement and if this is a good idea for a startup.

    I will give those who are interested access to the system, and I will answer any questions and provide assistance if needed. I can also arrange an online meeting.
    Do you have a problem with Raspberry? Ask question. Visit our forum Raspberry.
  • ADVERTISEMENT
  • #2 18324435
    xury
    Automation specialist
    It looks pretty cool. You write that you haven't found these features in any of the available systems, and these are basic features what Domoticz, OpenHAB, Supla or Home Assistant have, for example. Well, maybe apart from camera viewing.
    You write nothing about the database. Is the information from the sensors collected and can it be displayed in the form of graphs, etc.?
    Don't get me wrong, I don't want to criticise you as I realise this is an early version and a lot of work still lies ahead. E.g. notifications, schedules, support for other devices etc. But it's cool that another Polish smart home system is being developed. I personally will probably never part with Domoticz. I have got to know it so well that I can handle any challenge. I wouldn't want to learn another one from scratch.
  • #3 18368518
    szyman.marek
    Level 2  
    @xury Actually I didn't give enough specifics. My entire system runs on the Microsoft Azure cloud. For 1 user in total it costs me nothing, that is why I blocked the registration. I can give you login and password on priv. ( Link to application ). On the phone it installs as an app because I wrote it in PWA.
    Briefly: the client application (ReactJS) communicates with the server application (.NET Core) via a REST API, which in turn, using SDK libraries from Microsoft, performs actions on configured cloud services.
    I used the Azure IoT platform . The telemetry data from the sensors is stored on this platform. This platform has a very high potential, as this data can also be processed using artificial intelligence algorithms. I am now adding weather prediction using the DHT22 sensor (I will know whether to open the windows when leaving for work in the morning :) ).
    Next I'm going to get down to implementing the recognition of people entering the house using the camera and displaying a notification:) And here, thanks to Azure, it's quite simple using the Microsoft Custom Vision service. All I need to do is extend my server to communicate with this service and give the user the ability to upload photos to teach this service to classify people ( Youtube video ).
    I will generate charts in real time using the Microsoft Power BI ( Example chart )

    For my simplicity, the sensors communicate directly with the cloud, but the sensor logging and connection parameters will be displayed in the app. It is enough to add these few lines of code to the sensor to be programmed. I will describe the whole step-by-step process in the WIKI section of the app.

    I am working on this system in my spare time, as a hobby. I'm interested in the subject of home automation, and I'm a programmer by day, so I've made it generic. And maybe someday someone will find it useful ;) .
ADVERTISEMENT