SlideShare a Scribd company logo
FHEM as IoT platform
Thilo Röhl 3-2016, www.pkienthusiast.com
Motivation
• Everyone has a smartphone, no one knows how to create things or
develop software
• First Generation of Apple being garage builders
• Smartphone and tablets create a out of the box
• No expertise with making things, creating things
• Even computer science students tend to have virtual expierience
The Rasberry Pi
• Invented for School people to educate programming
• Project founded in UK
• Roughly sold 5 Millions (2013)
• Production in UK – moved back from China
• Non Profit Organisation
• Open Design
• Low Power, about 12 € for a whole year
Operation System
• Linux
• Open Source
• Invented by Linus Torvalds et al
FabLabs
• Open laboratories to fix things
• People want to understand how things work rather than buying new
things
• The makers build their own systems
• Connection and building own things
• Open space, non profit
AirPi
• Created by a group of english pupils
• Sensors for air quality, sound, light
• Sourcecode freely available is now
maintained by a english chemistry
phd student
• You get it in single parts to solder
it yourself
• Nonprofit
AirPi delivery
Adafuit LCD Display
• A simple display to solder for yourself including a plate, an LCD display
and 5 small buttons
• Tutorials with pictures on the webpage how to solder it. Source code
to use the display is freely available
Ardafruit LCD Template Delivery
FHEM
• Created by Rudolf König / Germany in 2005
• Perl script to be used for home automation, GPL open source
• Module based system, module maintained by anyone active on the
forum
• Very active community
• Independent of cloud or networks
Sensors, Events, Actors
• FHEM connects Sensors with different modules creating inside events
using triggers to start actors
• Any Sensor can be freely connected to any Actor
• The perl language allows regular expressions and powerful
combinations
• Local scripts can be executed or web services called
• FHEM instances can be connected to allow a distributed model
• It is possible to connect devices over many different wired or wireless
protocols e.g. KNX, EIB, Homematic, GPIO of the rasberry pi
Z-Wave
• Wireless protocol supported by a alliance of vendors
• Z-Wave creates a „secure“ mesh network
• Examples are smoke detectors, water detectors,
wall plugs with sensors and logic
Enocean
• Alliance of couple of vendors, based in Munich
• Focus on low-power design
• Switch using the energy of the movement of the finger
• Temperature or window opener use the light
Bluetooth LE
• New devices in the market, mainly
for smart phone connections can be
interconnected with FHEM
ZigBee
• Used for Philips Hue Lightning, Osram Lightfy
• Tendencies to unfollow open standards
• Security issues according heise *
*http://www.heise.de/security/meldung/Deepsec-ZigBee-macht-Smart-Home-zum-offenen-Haus-3010287.html
If you cannot decide…
• Chose an open system !
• FHEM is able to integrate them all
• Consider Home Automation as a journey. Step by step integration,
avoid buying island solutions
Base Setup of Rasberry Pi
• Basis setup of pi
• sudo apt-get update
• sudo apt-get upgrade
• sudo raspi-config
• to expand file-system and to setup localisation/keyboard
• date –s „03/08/2016 12:30“
• to setup time. The pi has no clock – use ntp if possible
• In some cases, a kernel update using „sudo rpi-update“ might be necessary. I
had to turn of the device tree using raspi-config to get some device back
working. Do only do this if really necessary 
Base setup of FHEM
• http://www.fhemwiki.de/wiki/Raspberry_Pi
• wget http://fhem.de/fhem-5.7.deb
• sudo dpkg -i fhem-X.Y.deb
• Start browser to access local system 127.0.0.1:8083
• Access is possible over smartphone, table and with VPN even remote
First update
• FHEM does not support a proxy for updating
• Put update in the command line
• Current perl modules will be download
• „update“ in the browser window
• „shutdown restart“
• „backup“
The power of the community
• Users contribute freetime to help others. www.fhem.de
• Resulting scripts are shared and further improved and finally
integrated in FHEM
• They are all having a lot of fun and are creating a deeper
understanding of IT
• Access to basic concepts of IT concepts for the whole community
Dummy
• http://www.fhemwiki.de/wiki/Erste_Schritte_in_fhem
• A state variable
• define mySchalter1 dummy
• attr mySchalter1 room Schulungsraum
Readingsgroup Battery Status
• define battStatus readingsGroup .*:[Bb]attery
• All Readings with Battery or Battery from all Devices
• Get connectivity overview
Dummies with with symbols and colors
• Dummies for alarms, Symbols, On/Off button
Zwave battery powered outside sensor
• Temperature, Humidity, Lux, Movement
Plotting Outside Temperature/Humidity
Readingsgroup Weather Readings
Plotting System load – 900 Mhz Throtteling
Plotting Bluetooth Presence
notify
• Notify triggers because of an event.
• A notify can trigger an SMS over a USB SIM Stick or a pushover app
message or an email
• define b3lampV1 notify btn3 set lamp $EVENT
• define b3lampV2 notify btn3 { fhem "set lamp $EVENT" }
• define b3lampV3 notify btn3 "/usr/local/bin/setlamp "$EVENT"“
• define n_mySchalter1_on notify mySchalter1:on set myLampe1 on
at
• At triggers something depening on a time
• define a1 at 17:00:00 set lamp on # fhem Befehl
• define a2 at 17:00:00 { Log 1, "Teatime" } # Perl Befehl
• define a5 at +00:00:10 set lamp on # Start in 10 secs
• define a12 at +*{sunset_rel()}
{ fhem("set lamp on-till 23:00") if($we) } # Only Weekends
before sunset
Notify for Smoke Alarm
Combine any input with any output
• Everything in FHEM can be combined regardless of the proctol
connecting to the outside
• If you are not satisified with a current solution, integrated you own
and show the example to the community
Combine Cloud Services
• Use the cloud to archive data, visualise data, trigger actions
• Useful when you need more power, more storage or a long term data
qualitiy
• Examples are ubitdot as general IOT data collector, netatmo as
weather service, Amazon as storage provider or Pushover as mobile
messaging service
Create installation short manuals
• E.g. Freeradius base config
• apt-get install freeradius libfreeradius2 freeradius-common freeradius-utils
• Installs packages, depening packages, start scripts (service freeradius start/stop) and start the
service
• add new client to :
• /etc/freeradius/clients.conf
• client 192.168.1.0/24 {
• secret = radiustest
• shortname = Testnetz
• }
And no go ahead and play with it 
• Rasberry Pi Setup
• https://www.raspberrypi.org/documentation/installation/installing-images/
• Zwave
• Example devices taken from www.fibaro.com, www.aeotec.com, www.popp.eu
• Enocean
• Example devices taken from www.nodon.fr
• Bluetooth
• Example devices taken from www.parrot.com/flowerpower, www.playbulb.com

More Related Content

Similar to Fhem as IOT rasberry pi platform

Embedded Systems: Lecture 8: The Raspberry Pi as a Linux Box
Embedded Systems: Lecture 8: The Raspberry Pi as a Linux BoxEmbedded Systems: Lecture 8: The Raspberry Pi as a Linux Box
Embedded Systems: Lecture 8: The Raspberry Pi as a Linux Box
Ahmed El-Arabawy
 
Hands-On Deep Dive with MiniFi and Apache MXNet
Hands-On Deep Dive with MiniFi and Apache MXNetHands-On Deep Dive with MiniFi and Apache MXNet
Hands-On Deep Dive with MiniFi and Apache MXNet
Timothy Spann
 
Hadoop-Automation-Tool_RamkishorTak
Hadoop-Automation-Tool_RamkishorTakHadoop-Automation-Tool_RamkishorTak
Hadoop-Automation-Tool_RamkishorTak
Ram Kishor Tak
 
FLOSS development
FLOSS developmentFLOSS development
FLOSS development
Frederik Questier
 
SIGFOX Makers Tour - Madrid
SIGFOX Makers Tour - MadridSIGFOX Makers Tour - Madrid
SIGFOX Makers Tour - Madrid
Nicolas Lesconnec
 
Coffee & Pi - Intro to Home Automation
Coffee & Pi - Intro to Home AutomationCoffee & Pi - Intro to Home Automation
Coffee & Pi - Intro to Home Automation
Brad ☼ Derstine
 
Raspberry pi home automation idea
Raspberry pi home automation ideaRaspberry pi home automation idea
Raspberry pi home automation idea
shashi gautam
 
OSDC 2018 | Puppet and the Road to Pervasive Automation by Walter Gildersleeve
OSDC 2018 | Puppet and the Road to Pervasive Automation by Walter GildersleeveOSDC 2018 | Puppet and the Road to Pervasive Automation by Walter Gildersleeve
OSDC 2018 | Puppet and the Road to Pervasive Automation by Walter Gildersleeve
NETWAYS
 
SIGFOX Makers Tour - Barcelona
SIGFOX Makers Tour - BarcelonaSIGFOX Makers Tour - Barcelona
SIGFOX Makers Tour - Barcelona
Nicolas Lesconnec
 
Contributing to Open Source
Contributing to Open SourceContributing to Open Source
Contributing to Open Source
Amol A. Sale
 
Free Libre Open Source Software - Business Aspects of Software Industry
Free Libre Open Source Software - Business Aspects of Software IndustryFree Libre Open Source Software - Business Aspects of Software Industry
Free Libre Open Source Software - Business Aspects of Software Industry
Frederik Questier
 
What we talk about when we talk about DevOps
What we talk about when we talk about DevOpsWhat we talk about when we talk about DevOps
What we talk about when we talk about DevOps
Ricard Clau
 
IMA/Thales EchoVoice (VOIP) for OpenSimulator Presentation at OSCC19
IMA/Thales EchoVoice (VOIP) for OpenSimulator Presentation at OSCC19IMA/Thales EchoVoice (VOIP) for OpenSimulator Presentation at OSCC19
IMA/Thales EchoVoice (VOIP) for OpenSimulator Presentation at OSCC19
Lisa Laxton
 
Free Libre Open Source Software - Business aspects of software industry
Free Libre Open Source Software - Business aspects of software industryFree Libre Open Source Software - Business aspects of software industry
Free Libre Open Source Software - Business aspects of software industry
Frederik Questier
 
Habitat Overview
Habitat OverviewHabitat Overview
Habitat Overview
Mandi Walls
 
Internet of Things, TYBSC IT, Semester 5, Unit II
Internet of Things, TYBSC IT, Semester 5, Unit IIInternet of Things, TYBSC IT, Semester 5, Unit II
Internet of Things, TYBSC IT, Semester 5, Unit II
Arti Parab Academics
 
Basics of GNU & Linux
Basics of GNU & LinuxBasics of GNU & Linux
Basics of GNU & Linux
BIT DURG
 
A Summary about Hykes' Keynote on Dockercon 2015
A Summary about Hykes' Keynote on Dockercon 2015A Summary about Hykes' Keynote on Dockercon 2015
A Summary about Hykes' Keynote on Dockercon 2015
Henry Huang
 
Introducing HPC with a Raspberry Pi Cluster
Introducing HPC with a Raspberry Pi ClusterIntroducing HPC with a Raspberry Pi Cluster
Introducing HPC with a Raspberry Pi Cluster
inside-BigData.com
 
e-Infrastructure available for research, using the right tool for the right job
e-Infrastructure available for research, using the right tool for the right jobe-Infrastructure available for research, using the right tool for the right job
e-Infrastructure available for research, using the right tool for the right job
David Wallom
 

Similar to Fhem as IOT rasberry pi platform (20)

Embedded Systems: Lecture 8: The Raspberry Pi as a Linux Box
Embedded Systems: Lecture 8: The Raspberry Pi as a Linux BoxEmbedded Systems: Lecture 8: The Raspberry Pi as a Linux Box
Embedded Systems: Lecture 8: The Raspberry Pi as a Linux Box
 
Hands-On Deep Dive with MiniFi and Apache MXNet
Hands-On Deep Dive with MiniFi and Apache MXNetHands-On Deep Dive with MiniFi and Apache MXNet
Hands-On Deep Dive with MiniFi and Apache MXNet
 
Hadoop-Automation-Tool_RamkishorTak
Hadoop-Automation-Tool_RamkishorTakHadoop-Automation-Tool_RamkishorTak
Hadoop-Automation-Tool_RamkishorTak
 
FLOSS development
FLOSS developmentFLOSS development
FLOSS development
 
SIGFOX Makers Tour - Madrid
SIGFOX Makers Tour - MadridSIGFOX Makers Tour - Madrid
SIGFOX Makers Tour - Madrid
 
Coffee & Pi - Intro to Home Automation
Coffee & Pi - Intro to Home AutomationCoffee & Pi - Intro to Home Automation
Coffee & Pi - Intro to Home Automation
 
Raspberry pi home automation idea
Raspberry pi home automation ideaRaspberry pi home automation idea
Raspberry pi home automation idea
 
OSDC 2018 | Puppet and the Road to Pervasive Automation by Walter Gildersleeve
OSDC 2018 | Puppet and the Road to Pervasive Automation by Walter GildersleeveOSDC 2018 | Puppet and the Road to Pervasive Automation by Walter Gildersleeve
OSDC 2018 | Puppet and the Road to Pervasive Automation by Walter Gildersleeve
 
SIGFOX Makers Tour - Barcelona
SIGFOX Makers Tour - BarcelonaSIGFOX Makers Tour - Barcelona
SIGFOX Makers Tour - Barcelona
 
Contributing to Open Source
Contributing to Open SourceContributing to Open Source
Contributing to Open Source
 
Free Libre Open Source Software - Business Aspects of Software Industry
Free Libre Open Source Software - Business Aspects of Software IndustryFree Libre Open Source Software - Business Aspects of Software Industry
Free Libre Open Source Software - Business Aspects of Software Industry
 
What we talk about when we talk about DevOps
What we talk about when we talk about DevOpsWhat we talk about when we talk about DevOps
What we talk about when we talk about DevOps
 
IMA/Thales EchoVoice (VOIP) for OpenSimulator Presentation at OSCC19
IMA/Thales EchoVoice (VOIP) for OpenSimulator Presentation at OSCC19IMA/Thales EchoVoice (VOIP) for OpenSimulator Presentation at OSCC19
IMA/Thales EchoVoice (VOIP) for OpenSimulator Presentation at OSCC19
 
Free Libre Open Source Software - Business aspects of software industry
Free Libre Open Source Software - Business aspects of software industryFree Libre Open Source Software - Business aspects of software industry
Free Libre Open Source Software - Business aspects of software industry
 
Habitat Overview
Habitat OverviewHabitat Overview
Habitat Overview
 
Internet of Things, TYBSC IT, Semester 5, Unit II
Internet of Things, TYBSC IT, Semester 5, Unit IIInternet of Things, TYBSC IT, Semester 5, Unit II
Internet of Things, TYBSC IT, Semester 5, Unit II
 
Basics of GNU & Linux
Basics of GNU & LinuxBasics of GNU & Linux
Basics of GNU & Linux
 
A Summary about Hykes' Keynote on Dockercon 2015
A Summary about Hykes' Keynote on Dockercon 2015A Summary about Hykes' Keynote on Dockercon 2015
A Summary about Hykes' Keynote on Dockercon 2015
 
Introducing HPC with a Raspberry Pi Cluster
Introducing HPC with a Raspberry Pi ClusterIntroducing HPC with a Raspberry Pi Cluster
Introducing HPC with a Raspberry Pi Cluster
 
e-Infrastructure available for research, using the right tool for the right job
e-Infrastructure available for research, using the right tool for the right jobe-Infrastructure available for research, using the right tool for the right job
e-Infrastructure available for research, using the right tool for the right job
 

Recently uploaded

Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
CAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on BlockchainCAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on Blockchain
Claudio Di Ciccio
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 

Recently uploaded (20)

Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
CAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on BlockchainCAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on Blockchain
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 

Fhem as IOT rasberry pi platform

  • 1. FHEM as IoT platform Thilo Röhl 3-2016, www.pkienthusiast.com
  • 2. Motivation • Everyone has a smartphone, no one knows how to create things or develop software • First Generation of Apple being garage builders • Smartphone and tablets create a out of the box • No expertise with making things, creating things • Even computer science students tend to have virtual expierience
  • 3. The Rasberry Pi • Invented for School people to educate programming • Project founded in UK • Roughly sold 5 Millions (2013) • Production in UK – moved back from China • Non Profit Organisation • Open Design • Low Power, about 12 € for a whole year
  • 4. Operation System • Linux • Open Source • Invented by Linus Torvalds et al
  • 5. FabLabs • Open laboratories to fix things • People want to understand how things work rather than buying new things • The makers build their own systems • Connection and building own things • Open space, non profit
  • 6. AirPi • Created by a group of english pupils • Sensors for air quality, sound, light • Sourcecode freely available is now maintained by a english chemistry phd student • You get it in single parts to solder it yourself • Nonprofit
  • 8. Adafuit LCD Display • A simple display to solder for yourself including a plate, an LCD display and 5 small buttons • Tutorials with pictures on the webpage how to solder it. Source code to use the display is freely available
  • 10. FHEM • Created by Rudolf König / Germany in 2005 • Perl script to be used for home automation, GPL open source • Module based system, module maintained by anyone active on the forum • Very active community • Independent of cloud or networks
  • 11. Sensors, Events, Actors • FHEM connects Sensors with different modules creating inside events using triggers to start actors • Any Sensor can be freely connected to any Actor • The perl language allows regular expressions and powerful combinations • Local scripts can be executed or web services called • FHEM instances can be connected to allow a distributed model • It is possible to connect devices over many different wired or wireless protocols e.g. KNX, EIB, Homematic, GPIO of the rasberry pi
  • 12. Z-Wave • Wireless protocol supported by a alliance of vendors • Z-Wave creates a „secure“ mesh network • Examples are smoke detectors, water detectors, wall plugs with sensors and logic
  • 13. Enocean • Alliance of couple of vendors, based in Munich • Focus on low-power design • Switch using the energy of the movement of the finger • Temperature or window opener use the light
  • 14. Bluetooth LE • New devices in the market, mainly for smart phone connections can be interconnected with FHEM
  • 15. ZigBee • Used for Philips Hue Lightning, Osram Lightfy • Tendencies to unfollow open standards • Security issues according heise * *http://www.heise.de/security/meldung/Deepsec-ZigBee-macht-Smart-Home-zum-offenen-Haus-3010287.html
  • 16. If you cannot decide… • Chose an open system ! • FHEM is able to integrate them all • Consider Home Automation as a journey. Step by step integration, avoid buying island solutions
  • 17. Base Setup of Rasberry Pi • Basis setup of pi • sudo apt-get update • sudo apt-get upgrade • sudo raspi-config • to expand file-system and to setup localisation/keyboard • date –s „03/08/2016 12:30“ • to setup time. The pi has no clock – use ntp if possible • In some cases, a kernel update using „sudo rpi-update“ might be necessary. I had to turn of the device tree using raspi-config to get some device back working. Do only do this if really necessary 
  • 18. Base setup of FHEM • http://www.fhemwiki.de/wiki/Raspberry_Pi • wget http://fhem.de/fhem-5.7.deb • sudo dpkg -i fhem-X.Y.deb • Start browser to access local system 127.0.0.1:8083 • Access is possible over smartphone, table and with VPN even remote
  • 19. First update • FHEM does not support a proxy for updating • Put update in the command line • Current perl modules will be download • „update“ in the browser window • „shutdown restart“ • „backup“
  • 20. The power of the community • Users contribute freetime to help others. www.fhem.de • Resulting scripts are shared and further improved and finally integrated in FHEM • They are all having a lot of fun and are creating a deeper understanding of IT • Access to basic concepts of IT concepts for the whole community
  • 21. Dummy • http://www.fhemwiki.de/wiki/Erste_Schritte_in_fhem • A state variable • define mySchalter1 dummy • attr mySchalter1 room Schulungsraum
  • 22. Readingsgroup Battery Status • define battStatus readingsGroup .*:[Bb]attery • All Readings with Battery or Battery from all Devices • Get connectivity overview
  • 23. Dummies with with symbols and colors • Dummies for alarms, Symbols, On/Off button
  • 24. Zwave battery powered outside sensor • Temperature, Humidity, Lux, Movement
  • 27. Plotting System load – 900 Mhz Throtteling
  • 29. notify • Notify triggers because of an event. • A notify can trigger an SMS over a USB SIM Stick or a pushover app message or an email • define b3lampV1 notify btn3 set lamp $EVENT • define b3lampV2 notify btn3 { fhem "set lamp $EVENT" } • define b3lampV3 notify btn3 "/usr/local/bin/setlamp "$EVENT"“ • define n_mySchalter1_on notify mySchalter1:on set myLampe1 on
  • 30. at • At triggers something depening on a time • define a1 at 17:00:00 set lamp on # fhem Befehl • define a2 at 17:00:00 { Log 1, "Teatime" } # Perl Befehl • define a5 at +00:00:10 set lamp on # Start in 10 secs • define a12 at +*{sunset_rel()} { fhem("set lamp on-till 23:00") if($we) } # Only Weekends before sunset
  • 32. Combine any input with any output • Everything in FHEM can be combined regardless of the proctol connecting to the outside • If you are not satisified with a current solution, integrated you own and show the example to the community
  • 33. Combine Cloud Services • Use the cloud to archive data, visualise data, trigger actions • Useful when you need more power, more storage or a long term data qualitiy • Examples are ubitdot as general IOT data collector, netatmo as weather service, Amazon as storage provider or Pushover as mobile messaging service
  • 34. Create installation short manuals • E.g. Freeradius base config • apt-get install freeradius libfreeradius2 freeradius-common freeradius-utils • Installs packages, depening packages, start scripts (service freeradius start/stop) and start the service • add new client to : • /etc/freeradius/clients.conf • client 192.168.1.0/24 { • secret = radiustest • shortname = Testnetz • }
  • 35. And no go ahead and play with it  • Rasberry Pi Setup • https://www.raspberrypi.org/documentation/installation/installing-images/ • Zwave • Example devices taken from www.fibaro.com, www.aeotec.com, www.popp.eu • Enocean • Example devices taken from www.nodon.fr • Bluetooth • Example devices taken from www.parrot.com/flowerpower, www.playbulb.com