Burn and configure the d-diot image

The first step is to obtain the latest d-diot image compatible with the hub v.1.0 and the d-diot board v.1.0. Go to the downloads section of the d-diot website and check.

Download

The second step is to burn your d-diot image to an SD card. The procedure is the same as for a standard Raspbian lite image, so you can follow this guide.

Put the SD card into your Raspberry Pi, mount the assembled d-diot board on top of the Raspberry Pi GPIO, connect the ethernet and power plug and turn on the hub.

The most parts of the system in the d-diot image are pre-configured, but some specific parameters that depends on your environment must be set manually.

Follow this guides to accomplish some basic operations like:

The default username and password to access the different part of the system are reported below.

The default username and password for the Home Assistant webui are:

Username: admin

Password: d-diot.com

The default username and password for the CLI are:

Username: pi

Password: d-diot.com

Root password: d-diot.com

The default SSID and password of the Wifi network, when in access point mode (default) are:

SSID: d-diot

Password: d-diot.com

The default username and password to access the Pi and HA samba shares are:

Username: admin

Password: d-diot.com

The default username and password to access the Home Assistant database on the MariaDB server are:

Username: homeassistant

Password: d-diot.com

Ethernet (eth0)

Connect your Raspberry Pi with an ethernet cable to your network or router and follow this guide to find the IP address of your hub.

If your network support avahi you can access the Home Assistant webui at the following URL

Wifi (wlan0)

In the d-diot image the on-board Wifi of the Raspberry Pi is configured to act as an access point with the aim to provide a dedicated and independent network to your Wifi sensors, like for example ESP8266 or ESP32 modules.

Visit this blog article to see what you can do with ESPHome and this modules.

The Wifi access point is already configured, you have just to set your country code editing the file /etc/hostapd/hostapd.conf and changing the following lines:

  • Line 3: country_code=IT. Change “IT” with your country code
  • Line 4: remove the “#” symbol before ieee80211d=1 line

To edit the hostapd.conf file type in a terminal (CLI):

pi@d-diot:~ $ sudo nano /etc/hostapd/hostapd.conf
/etc/hostapd/hostapd.conf
ssid=d-diot
wpa_passphrase=d-diot.com
country_code=IT
#ieee80211d=1
ieee80211n=1
interface=wlan0
driver=nl80211
hw_mode=g
channel=7
wmm_enabled=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

If you want to change also the name of your wifi network and the passphrase edit the lines “ssid=d-diot” and “wpa_passphrase=d-diot.com”.

Save the changes (Ctrl+x, Y) and restart the hostapd service to apply the changes:

pi@d-diot:~ $ sudo systemctl restart hostapd

Your Wifi is now configured to work properly with the frequencies approved by your country's law.

Run the raspi-config tool to change your locale and Timezone settings

pi@d-diot:~ $ sudo raspi-config

select the options 4 “Localisation Options” and change the following parameters according to your needs:

  • I1 Change Locale
  • I2 Change Timezone
  • I3 Change Keyboard Layout

Before uploading the RFLink firmware, make sure that your ATMega2560 has the Arduino bootloader pre-installed. If not follow this guide.

To upload the RFLink firmware to your ATMega2560 follow this guide. You should see the blue LED (D14) blinking fast during the upload process.

When the upload is finished press the MCU reset button (SW2) on the d-diot board and verify that the RFLink firmware is correctly working opening a serial connection.

Now you can enable the RFLink component in Home Assistant. Edit the configuration.yaml file, located in home/homeassistant/.homeassistant/configuration.yaml and accessible via samba or CLI and uncomment the following lines, that are disabled in the vanilla d-diot image.

/home/homeassistant/.homeassistant/configuration.yaml
## RFLink
rflink:
  port: /dev/serial0
  wait_for_ack: true

Restart Home Assistant to apply the changes:

pi@d-diot:~ $ sudo systemctl restart home-assistant@homeassistant

Read this guide to start playing with your 433 MHz devices in Home Assistant.

Read this guide if you wont to make your Home Assistant accessible from the outside of your network.

The two MySensors gateways are completely pre-configured. Follow this guide to change the default signing key, to improve the security of your sensors and actuators network.

The IR gateway and lirc_web are pre-configured. Explore this section to start playing with your IR devices.

NMAP and Bluetooth tracker are disabled by default but pre-configured. Read here and here to see how to enable them.

  • getting_started/hub_v1.0/3_configuration.txt
  • Last modified: 2019/05/27 20:47
  • by franzunix