Skip to main content

Development and Improvement of a Data Storage System in a Microgrid Environment with HomeAssistant and MariaDB

  • Conference paper
  • First Online:
Smart Cities (ICSC-Cities 2021)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 1555))

Included in the following conference series:

Abstract

In a microgrid environment, it’s suitable to store data obtained from the different devices that make up the microgrid in order to have the ability to perform a detailed data analysis later. This article will detail the process followed to store the data that has been collected through the monitoring and control software ‘Home Assistant’ in the microgrid of the CEDER-CIEMAT (Renewable Energy Center in Soria, Spain). The structure of the storage system created for a robust storage of data in the DBMS (Database Management System) MariaDB will be detailed and how to correct the different typical errors that are made in the development process of this storage system. Aspects the operation of the connection between Home Assistant and MariaDB, the configuration to establish communication with each other correctly and the organization of the different structures to be formed in the database created using the programming language SQL (Structured Query Language). It will detail the performance offered by this system together with the transformed data that has been generated for further analysis. Due to the emergence of new storage systems that are better adapted to the field of microgrids, the different alternatives that can be used will be described, which may replace the system developed to improve it.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
CHF34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
CHF 24.95
Price includes VAT (Switzerland)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
CHF 75.50
Price excludes VAT (Switzerland)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
CHF 94.50
Price excludes VAT (Switzerland)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Miraz, M.H., Ali, M., Excell, P.S., Picking, R.: A review on internet of things (IOT), internet of everything (IOE) and internet of Nano things (IONT). In: 2015 Internet Technologies and Applications (ITA), pp. 219–224 (2015). https://doi.org/10.1109/ITechA.2015.7317398

  2. Weber, R.H., Weber, R.: Introduction, pp. 1–22. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-11710-7_1

  3. Hossein Motlagh, N., Mohammadrezaei, M., Hunt, J., Zakeri, B.: Internet of things (IOT) and the energy sector. Energies 13(2), 404 (2020). https://doi.org/10.3390/en13020494. https://www.mdpi.com/1996-1073/13/2/494

    Article  Google Scholar 

  4. Liu, X., Ansari, N.: Toward green IoT: energy solutions and key challenges. IEEE Commun. Mag. 57(3), 104–110 (2019). https://doi.org/10.1109/MCOM.2019.1800175

    Article  Google Scholar 

  5. Bedi, G., Venayagamoorthy, G.K., Singh, R., Brooks, R.R., Wang, K.C.: Review of internet of things (IoT) in electric power and energy systems. IEEE Internet of Things J. 5(2), 847–870 (2018). https://doi.org/10.1109/JIOT.2018.2802704

    Article  Google Scholar 

  6. Zubieta, L.E.: Power management and optimization concept for DC microgrids. In: 2015 IEEE First International Conference on DC Microgrids (ICDCM), pp. 81–85 (2015). https://doi.org/10.1109/ICDCM.2015.7152014

  7. Islam, M., Lee, H.H.: Microgrid communication network with combined technology. In: 2016 5th International Conference on Informatics, Electronics and Vision (ICIEV), pp. 423–427 (2016). https://doi.org/10.1109/ICIEV.2016.7760039

  8. Hatziargyriou, N.: The microgrids concept. In: Microgrids: Architectures and Control, pp. 1–24 (2014). https://doi.org/10.1002/9781118720677.ch01

  9. Asiminidis, C., Georgiadis, I., Syndoukas, D., Kokkonis, G., Kontogiannis, S.: Performance evaluation on encrypted - non encrypted database fields containing IOT data. In: Proceedings of the 23rd International Database Applications and Engineering Symposium, IDEAS 2019. Association for Computing Machinery, New York, NY, USA (2019). https://doi.org/10.1145/3331076.3331097

  10. Rautmare, S., Bhalerao, D.M.: MySQL and NoSQL database comparison for IOT application. In: 2016 IEEE International Conference on Advances in Computer Applications (ICACA), pp. 235–238 (2016). https://doi.org/10.1109/ICACA.2016.7887957

  11. Reetishwaree, S., Hurbungs, V.: Evaluating the performance of SQL and NoSQL databases in an IOT environment. In: 2020 3rd International Conference on Emerging Trends in Electrical, Electronic and Communications Engineering (ELECOM), pp. 229–234 (2020). https://doi.org/10.1109/ELECOM49001.2020.9297028

  12. Ming, D., Tian, X., Lei, W.: Research of real-time database system for microgrid. In: The 2nd International Symposium on Power Electronics for Distributed Generation Systems, pp. 708–712 (2010). https://doi.org/10.1109/PEDG.2010.5545839

  13. Mariadb foundation (2019). https://mariadb.org/

  14. Izquierdo-Monge, O., et al.: Conversion of a network section with loads, storage systems and renewable generation sources into a smart microgrid. Appl. Sci. 11(11), 5012 (2021). https://doi.org/10.3390/app11115012. https://www.mdpi.com/2076-3417/11/11/5012

    Article  Google Scholar 

  15. Pi, R.: Raspberry Pi 4 model B specifications. https://www.raspberrypi.org/products/raspberry-pi-4-model-b/specifications/

  16. Home Assistant. https://www.home-assistant.io/

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Oscar Izquierdo-Monge .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Izquierdo-Monge, O., Martin-Jimenez, G., Peña-Carro, P. (2022). Development and Improvement of a Data Storage System in a Microgrid Environment with HomeAssistant and MariaDB. In: Nesmachnow, S., Hernández Callejo, L. (eds) Smart Cities. ICSC-Cities 2021. Communications in Computer and Information Science, vol 1555. Springer, Cham. https://doi.org/10.1007/978-3-030-96753-6_19

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-96753-6_19

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-96752-9

  • Online ISBN: 978-3-030-96753-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics

  NODES
Association 1
Idea 1
idea 1
INTERN 13