Skip to content

fearandloathinginithell/HomeAssistantHell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

37 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Home Assistant

I'm home grown in New Zealand NZ Flag You'll generally see NZ links. I enjoy tinkering in Home Assistant in my down time. If you find something useful in here, Yay!

Hardware

Previous Server Hardware

Software Components

DD7002B WIFI Bridge

Jump to: RS485 control of the DD7002B WIFI Bridge

OpenSprinkler

Jump to: MQTT monitoring of OpenSprinkler

Shelly

Jump to: Shelly

Zigbee

Jump to: ZHA

Home Assistant Glow 🌟

Additonal components:

Including the hardware discussed here: https://github.com/klaasnicolaas/home-assistant-glow No additonal changes made to Klaas's configuration

MQTT control monitoring of OpenSprinkler

Open Sprinkler MQTT documentation

Opensprinkler

Requirements

configuration.yaml

https://www.home-assistant.io/integrations/sensor.mqtt/ https://www.home-assistant.io/integrations/template/ https://www.home-assistant.io/integrations/template/#startup https://www.home-assistant.io/integrations/template/#change-the-icon-when-a-state-changes

default_config:
homeassistant:
  customize_glob: !include customize_glob.yaml
sensor:
  - platform: mqtt
    name: "OpenSprinkler Station 0"
    # "Pot Plants"
    state_topic: "opensprinkler/station/0"
    value_template: "{{ value_json.state }}"
template:
  - sensor:
      - name: "Watering Pot Plants"
        state: >
          {% if is_state('sensor.opensprinkler_station_0', '1') %}
            watering
          {% elif is_state('sensor.opensprinkler_station_0', '0') %}
            idle
          {% else %}
            standby
          {% endif %}
        icon: >
          {% if is_state("sensor.watering_pot_plants", "watering") %}
            mdi:sprinkler-variant
          {% else %}
            mdi:sprinkler
          {% endif %}

RS485 control of the DD7002B WIFI Bridge

Requirements

  • DD7002B WIFI Bridge firmware 0.8.0 or greater
  • EZSync010 or other RS485 bridge

Wiring EZSync010 to DD7002B, RS485 Interface

EZsync010 was terminated to a RJ9/4P4C plug

EZSync010 RJ9/4P4C Function
Black 1 Ground
- 2 -
Orange 3 485A
Yellow 4 485B
Red - Power
Brown - Terminator 1
Green - Terminator 2

'-' denotes not in use

EZSync010

Further Documentation:

Drivers

macOS Catalina

No additional drivers required

Windows 10 1909

Drivers for chipset https://www.ftdichip.com/FTDrivers.htm

Raspberry Pi

No additional drivers required

ODROID-N2+

No additional drivers required

Connecting to Bridge Raspberry Pi

Install Screen if required

sudo apt-get install screen
screen /dev/ttyUSB0 9600

Connecting to Bridge macOS Catalina

List USB devices in the OS to retreive the device name of the EZSync010 assigned in the OS.

ls /dev/tty.*
/dev/tty.Bluetooth-Incoming-Port	/dev/tty.usbserial-AB0KFHEJ

Connect to EZSync010 and specify the baud rate

screen /dev/tty.usbserial-AB0KFHEJ 9600

Blind information

Value Description
!123D005vZ10 Lounge 1, One Way Blind
!123D006vZ10 Bedroom, One Way Blind
!123D003vU10 Kitchen Blind, Two Way Blind

Issue Commands

Query Bridge

!123D000v?;
Response
!123D001vZ10;!123D002vZ10;!123D003vU10;!123DFFFv000;

Open a Blind

!123D003vU10o;

Close a Blind

!123D003vU10c;

Stop a Blind

!123D003vU10s;

Query a bidirectional Blind postion

!123D003vU10q;

Control blinds with Home Assistant

iOS_blinds

configuration.yaml

https://www.home-assistant.io/integrations/cover.command_line/

default_config:
homeassistant:
  customize_glob: !include customize_glob.yaml
cover:
  - platform: command_line
    covers:
      blind_lounge_se:
        command_open: '/bin/bash -c "( stty raw speed 9600 >&2; echo -ne ''!123D005o;'' ) >/dev/ttyUSB0 <&1"'
        command_close: '/bin/bash -c "( stty raw speed 9600 >&2; echo -ne ''!123D005c;'' ) >/dev/ttyUSB0 <&1"'
        command_stop: '/bin/bash -c "( stty raw speed 9600 >&2; echo -ne ''!123D005s;'' ) >/dev/ttyUSB0 <&1"'
        friendly_name: Lounge South East
      blind_bedroom_master:
        command_open: '/bin/bash -c "( stty raw speed 9600 >&2; echo -ne ''!123D006o;'' ) >/dev/ttyUSB0 <&1"'
        command_close: '/bin/bash -c "( stty raw speed 9600 >&2; echo -ne ''!123D006c;'' ) >/dev/ttyUSB0 <&1"'
        command_stop: '/bin/bash -c "( stty raw speed 9600 >&2; echo -ne ''!123D006s;'' ) >/dev/ttyUSB0 <&1"'
        friendly_name: Bedroom Master

customize_glob.yaml

cover.blind_lounge_se:
  icon: mdi:blinds
cover.bedroom_*:
  icon: mdi:blinds

Shelly

Shelly API Documentation https://shelly-api-docs.shelly.cloud/

Shelly Gen 1 Firmware Change Log https://shelly-api-docs.shelly.cloud/gen1/#changelog

Shelly Gen 2 Firmware Change Log https://shelly-api-docs.shelly.cloud/gen2/changelog

Shelly firmware update URL generator http://archive.shelly-tools.de/ usefull for rollback firmware.

http://192.3.4.5/ota?url=http://archive.shelly-tools.de/version/v1.11.8/SHDW-2.zip

With user authentication:

http://user_name:[email protected]/ota?url=http://archive.shelly-tools.de/version/v1.11.8/SHDW-2.zip

Shellies Discovery

Initially used https://github.com/bieniu/ha-shellies-discovery and MQTT which worked well, however I migrated to native Shelly Integration CoIoT

CoIoT

Be sure to configure Home Assistant IP address and port don't use Multicast

CoIoT Settings

ZHA

ConBee II Firmware Change Log https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Firmware-Changelog

https://github.com/zigpy/zigpy https://github.com/zigpy/zigpy/wiki/OTA-Device-Firmware-Updates http://fw.ota.homesmart.ikea.net/feed/version_info.json https://www.home-assistant.io/integrations/zha#ota-firmware-updates https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/OTA-Image-Types---Firmware-versions https://ww8.ikea.com/ikeahomesmart/releasenotes/releasenotes.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published