IOT - Bosch
  • Introduction
  • Devices
    • Bosch XDK 110
      • Introduction
      • Operating System
      • Hardware
        • Sensors
          • Accelerometer
            • C
          • Gyroscope
            • C
            • Mita
          • Magnetometer
            • C
          • Environmental
            • C
            • Mita
          • Ambient Light
            • C
            • Mita
          • Acoustic
            • C
      • Software
        • XDK WorkSpace
          • Structure
          • Debug
          • Supported languages
            • C
              • Static Library (.a)
            • XDK Live - Mita
            • MicroFlo
      • Connectivity
        • Bluetooth Low Energy (BLE)
          • Overview
          • General Info
          • Implementation
            • C
            • XDK Live
        • WI-FI
          • OverView
          • Implementation
            • C
            • XDK Live
        • WI-FI Enterprise
      • Protocols
        • CoAP
          • Overview
          • Implementation -TBD
        • HTTP
          • Overview
          • Structure and Methods
          • Implementation
            • C - Rest
            • C - Post
            • XDK Live
        • HTTPS
          • Overview
          • Implementation TBD
        • LWM2M
          • Overview
          • Implementation TBD
        • MQTT
          • Overview
          • Implementation
            • C
            • XDK Live
        • USB
          • Overview
          • Implementation TBD
      • Data Storage
      • XDK Extension Bus
      • Community
      • Applications
        • Language C
          • HomeAssitant - MQTT
            • Prerequisites
            • Server
            • Device
          • IOTA-MQTT-XDK
            • Prerequisites
            • XDK110
            • Mqtt JSON to MAM
            • SensorHub
            • Demo
        • Language XDK Live
          • MQTT
            • Hello World
            • HomeAssistant
              • Prerequisites
              • Server
              • Device
            • Docker-HomeAssistant
          • HTTP
            • Roku Remote Control
              • Roku API
              • MITA
                • Example
    • Bosch AMRA
    • Bosch GLM 100C
    • Bosch FLEXIDOME IP panoramic
    • Bosch GLM 100C
    • Bosch Rexroth Nexo
    • Bosch Rexroth PRC 7000
    • Bosch RRC / CT100
    • Bosch Rexroth IoT Gateway
  • Bosch IOT Solutions
    • Bosch IOT Projects
      • Smart Home
      • Industry 4.0
      • Smart Cities
      • Connected-mobility
    • Bosch IOT Suite
      • Bosch Analytics
      • Bosch IOT Hub
      • Bosch Iot Permission
      • IoT Remote Manager
      • IoT Rollouts
      • IoT Things
      • Demo TBD **
    • BPM and BRM
  • IOTA
    • Introduction
      • Tangle
      • Glossary
      • Differences with other tech
      • How does iota work
      • Developers
    • Qubic
      • What is Qubic?
      • Target
      • Qubic Protocol
    • Ecosystem
    • Applications
      • Python
      • XDK110
        • Prerequisites
        • XDK110
        • Mqtt JSON to MAM
        • SensorHub
    • Bosch/IOTA
  • ByteBall
    • SmartContract
    • Use Case
      • BoshCoins
Powered by GitBook
On this page

Was this helpful?

  1. Devices
  2. Bosch XDK 110
  3. Applications
  4. Language XDK Live
  5. MQTT

Docker-HomeAssistant

PreviousDeviceNextHTTP

Last updated 5 years ago

Was this helpful?

For this example we are going to replicate the previous demo but this time using dockers.

For more documentation:

Prerequisites:

  1. Docker installed ()

Demo

  1. First we need to open a terminal

  2. Then create a folder where you want to storage the application for example.

$ ls
$ mkdir xdkhome
$ cd xdkhome

Then we need to execute:

$ docker run -d \
--name="hass" \
--restart on-failure \
-v /Users/reyes/xdkhome/hass_config:/config \
-e "TZ=America/Chicago"
-p 8123:8123 \
homeassistant/home-assistant

Then lets verify that the folder of configuration was create:

$ cd hass_config/

Lets copy now our configuration.yaml and replace for the yaml of the folder.

$ cp XDK110-Bosch/XDKLive/MQTT/HomeAssistant/Server/configuration.yaml ~/reyes/xdkhome/hass_config/

Finally open a browser and open 127.0.0.1:8123 and restart home assistant to see the new interface

Auto-Execute

$ cd XDKLive/MQTT/DockerHome
$ sh run.sh

Lets copy now our configuration.yaml and replace for the yaml of the folder.

$ cp XDK110-Bosch/XDKLive/MQTT/HomeAssistant/Server/configuration.yaml ~/reyes/xdkhome/hass_config/

Finally open a browser and open 127.0.0.1:8123 and restart home assistant to see the new interface

https://www.home-assistant.io/docs/installation/docker/
How to