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.
This is a major new branch, Many things broken, change log as follows:
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...
Open HACS and go to the Settings tab
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
When this message appears follow it by going to Configuration -> Server Tools and then "Restart"
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".
When the integration starts you may need to enter the Neo-hub IP address. The port is always 4242.
If you are successful, after restarting HA you will see the results under Configuration -> Entities
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.
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.
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.
Note: This will eventually be part of the setup process and done internally.
nc -ulk -p 19790
echo -n "hubseek" | nc -b -u 255.255.255.255 19790
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.
If you are not using token based authentication;
Check the Heatmiser Mobile App and under SETTINGS -> API -> API TOKENS ensure that Legacy API is enabled.
After checking the above please try testing with the hub using the following commands from the Home Assistant terminal (Provided by the addon "Terminal & SSH");
printf '{"INFO":0}\0' | nc YOUR_DEVICE_IP_HERE 4242
If you are trying to authenticate using token based authentication;
ping IP_ADDRESSS_HERE
if this fails the Neohub is likely unreachable for some
reason.rm -rf /config/custom_components/heatmiserneo
restart Home Assistant and install from fresh.This integration provides two services that can be called from home assistant.
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:
hold_duration
- how long to hold the specified temperature. This is given in Home Assistant duration format (hh:mm e.g. hold_duration: 01:30
) and can go up to 99:59.hold_temperature
- sets the temperature to hold. Specified as an integer (e.g. hold_temperature: 20
).If there is an existing hold on any device targeted by the service call, it is replaced by the new hold.
You can release any existing hold on a NeoStat specified by entity, device or area. There are no other parameters.
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:
hold_duration
- how long to hold the specified temperature. This is given in Home Assistant duration format (hh:mm e.g. hold_duration: 01:30
)If there is an existing hold on any device targeted by the service call, it is replaced by the new hold.
NeoStat climate entities reads the following attributes that are relevant to the Hold functionality:
hold_on
: whether a hold is in actionhold_temperature
: what temperature is being held (note that this will have a numeric value, even if there is no hold in effect - this is a function of the NeoStat, not of the integration)hold_duration
: shows how many hours:minutes are remaining on the hold. If no hold is active, shows '0:00'.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://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!