MindrustUK / Heatmiser-for-home-assistant

Heatmiser Neo-Hub / Neostat support for home-assistant.io
88 stars 33 forks source link
hass heatmiser home-assistant neostat

Heatmiser-for-home-assistant

An integration for Home Assistant to add support for Heatmiser's Neo-Hub and 'Neo' range of products.

This is a work in progress for adding Heatmiser Neo-hub support to Home Assistant (https://home-assistant.io/), I maintain this as a weekend project only so don't expect fast updates but feel free to raise issues as needed.

Announcements

This is a major new branch, Many things broken, change log as follows:

Change log

Change Log

Known issues - Read me first!

Installation:

Before starting installation you should know the IP address of the Neo-hub. If you don't know the IP address, use one of the approaches suggested below to find your neo-hubs IP address.

It is suggested that you should allocate a static IP to the Heatmiser Neo-hub or use a DNS entry that's resolvable by Home-Assistant (see notes below).

The preferred method of installation is using HACS although the legacy, cut-and-paste method of installation can still be used and is described under Options below. Installing via HACS is a two-stage process. Firstly, add the Heatmiser repository to HACS, then secondly adding the Heatmiser Integration to Home Assistant.

HACS is available from https://github.com/hacs and there are copious resources available (e.g. http://hacs.xyz) about its installation. This will involve lots of Home Assistant restarts! Once you have HACS running...

Stage 1: Add to HACS

Open HACS and go to the Settings tab

CustomIntegration

Add "https://github.com/MindrustUK/Heatmiser-for-home-assistant" as a repository as an "Integration" type, note you need to include the quote marks around the repository name. Go to the Integrations tab Search for "Heatmiser Neo Integration", (it will probably be at the bottom!) select and install

CustomRepositories

When this message appears follow it by going to Configuration -> Server Tools and then "Restart" RestartNotice

Stage 2: Configure the integration in HA:

Go to Configuration -> Integrations and click on the orange icon in the bottom right corner produces a drop down list and scroll down to "Heatmiser Neo Climate".

HowToIntegrate

When the integration starts you may need to enter the Neo-hub IP address. The port is always 4242.

Config

If you are successful, after restarting HA you will see the results under Configuration -> Entities

Entities

(Optional) Legacy Installation:

For Hass.io:

Install and configure SSH server from the "Add-on store". Once you have shell run the following:

mkdir -p /config/custom_components
cd /tmp/
git clone https://github.com/MindrustUK/Heatmiser-for-home-assistant /tmp/heatmiserneo
mv /tmp/heatmiserneo/custom_components/heatmiserneo /config/custom_components/
rm -rf /tmp/heatmiserneo/

Restart Home Assistant and setup the integration.

For Windows 10 Manual installation:

Install and configure Samba Share from the "Add-on store". Change directory to config location then run the following:

Create a network drive pointing at your Home Assistant config directory.
If there is not a sub-directory in this drive called custom_components create it.
Now create a subdirectory under custom_components called heatmiserneo.
Download all the files from the Heatmiser-for-home-assistant Github repository.
Copy and paste all thoese files into the new Home Assistant heatmiserneo sub-directory.

Troubleshooting

I can't find my Neohub

Try discovery using nmap

As suggested by Haakon Storm Heen, try namp on your local network range:

nmap -Pn -p4242 -oG - 192.168.1.0/24 | grep 4242 | grep -i open

Where supported by your network and machine you can use a tool such as ZeroConfServiceBrowser or "Discovery - DNS-SD Browser" (iPhone) to detect the mDNS broadcast from the hub. Look for "_hap._tcp." and the "Heatmiser neoHub" should be listed as a device.

Note: If you discover the device via mdns/zeroconf then you can use the hostname advertised by the service.

Using Heatmiser Discovery

Note: This will eventually be part of the setup process and done internally.

A response such as hubseek{"ip":"192.168.0.2","device_id":"nn:nn:nn:nn:nn:nn"} should then be rendered in the listening terminal.

I can't connect to my Neohub

The info command times out

Other common troubleshooting steps to try

Bug Reporting and asking for help:

Services

This integration provides two services that can be called from home assistant.

Hold

You can apply a hold using the heatmiserneo.hold_on service. This can be used to target an entity, device or area and also accepts the following parameters:

If there is an existing hold on any device targeted by the service call, it is replaced by the new hold.

Release Hold

You can release any existing hold on a NeoStat specified by entity, device or area. There are no other parameters.

Timer Hold

You can apply a hold to a timer entity using the heatmiserneo.timer_hold_on service. This can be used to target an entity, device or area operating in timer mode and also accepts the following parameters:

If there is an existing hold on any device targeted by the service call, it is replaced by the new hold.

Related Attributes

NeoStat climate entities reads the following attributes that are relevant to the Hold functionality:

Supporting this project

As per: https://github.com/MindrustUK/Heatmiser-for-home-assistant/issues/133 a few users found this useful and wanted to support my work. I'm very grateful and humbled, thanks for the show of support! As such I've setup the following to accept donations to support my work;

https://ko-fi.com/MindrustUK

https://liberapay.com/MindrustUK

If anyone from Heatmiser is reading; some more devices to build out a more complete hardware test suite to ensure coverage would really help the project. Feel free to reach out if you want to help with this.

This is not a completely solo project, and credit is due to anyone who contributed. Please see the GitHub commits to support these awesome devs if there was any work that you would like to say thanks for.

I'd particularly like to call out

Please consider supporting their efforts!