Devi Smart

Enjoy! This is by design, please read the docs. The only real command has “set” prefix. The thermostat has a complex logic of different modes and schedules, with auto transitions. I’ve decided to use the simplest approach.

I was able to put igor-podpalchenko code to HA Addon and run it on RPI4. No more external servers.

Some cleanup and it will be ready! :slight_smile:

igor-podpalchenko, it’s ok to use Java-sdk-17 (need to edit pom.xml), because Java-sdk-18 is not available in HA Addon image?

So, we could see Devi add-on soon and i can get rid of my single Devi integration OpenHab running on Proxmox? )

Needs devi_config.json and mqtt_config.json from GitHub - igor-podpalchenko/ha-devi-mqtt: Home Assistant Danfoss DeviReg MQTT service

I didn’t check it with SDK 17, try it. All dependencies are based on OpenHAB.
It may be removed/reduced, but implementing callbacks will take a lot of time.

There is new release of DEVI MQTT Addon 0.2:

  1. No more OpenHab and external servers. Everything moved to addon.
  2. New Climate entity logic. Very similar to Devi app and my previus OpenHab integration.
  3. New sensor naming. Now you can rename device and all his sensors will be renamed.
  4. New sensors for climate entity (temperature based on room or floor regulated, target temperature based on preset), small tweaks.
  5. This build works much better and fully replaces previous OpenHab version!
  6. devi_config.json can be generated once on any machine and used in future. To move this part to addon - Contributors are welcome (webserver + pipes or web terminal emulator).
  7. igor-podpalchenko ha-devi-mqtt will be updated shortly. Currently new code only in my fork.
  8. In next several days I can fix/change something in this devi integration. Feedback is welcome.

Addon repo: GitHub - bob-tm/ha-devireg-mqtt-addon

1 Like

@Qa23 , I just installed the add-on and it is working great so far! I first bought a RPI4 in 2019 to install Home Assistant and control my floor thermostats that Danfoss had communicated API will come for. But that never happened. So by using OpenHab and two RPI, I have had the thermostats in HA, but not really optimal. This add-on solves that, now I no longer need two RPI just to keep control of the thermostats! Thank you!

1 Like

Sorry @Qa23 - Can you clarify how you install your add-on from the Git Repository into a HA AddOn?

Apologies if this is a basic question. I just don’t understand how to do it and would love to move this logic to my RPi

Just your step 2 - I already have the configuration files on my NAS

I added “Repository installation” to readme on github. You can use old config.json and mqtt from NAS.

Addons do not restart when HA core going to reboot. So not all params available after HA restart. In latest version I minimize this problem, by enabling “retained” flag to main params used in climate entity. Other params will be back in several hours.

To fully resolve this problem - we need to create automation or pyscript, to restart this addon after each HA boot.

1 Like

Thanks! I got this working on my installation now.

Hello, I am new with Home Assistant and I have no idea how to integrate Devireg Smart thermostats to my HA. I bought Home Assistant green and I have it working and for example I have my heat pumps now integrated (Mitsubishi) and working as a charm.

My problem is that I have read through from GIT @igor-podpalchenko addon information and code etc about this, but I have no idea how can I install this on my Home Assistant Green. I installed MQTT, but I think this is not the way. Is there someone that could please assist me step by step to install my thermostats to HA?

1 Like

Count me in for step by step tutorial

I just want to give a shoutout to igor-podpalchenko and Oleksiy Babenko to make this work! Here’s (an incomplete) step-by-step walkthrough that we went though yesterday to make things work.

These steps were done using a personal laptop and the resulting configuration files uploaded in-place to Raspberry pi using HomeAssistant upload and terminal functions.

Install & configure Java JDK

Install & configure Maven

Compile ha-devi-mqtt.jar

  • Git clone main repository of igor-podpalchenko/ha-devi-mqtt (or download main repo as zip archive)
  • Inside cloned/extracted folder, run maven package to generate the ha-devi-mqtt.jar:
    • mvn clean package
  • go to “target” folder
  • Run the discovery:
    • java -cp ha-devi-mqtt.jar io.homeassistant.devi.mqtt.service.DiscoveryService
  • After the discovery I think there was a prompt in the Devireg mobile app to approve the action that you need to confirm

Configure MQTT broker

  • Install “Mosquitto MQTT broker” add-on if you don’t already have another MQTT broker installed
  • Follow Mosquitto MQTT broker install instructions and generate new user for it in Homeassistant Settings
  • Manually generate mqtt_config.json
    • use HomeAssitant’s IP as host
    • user and password are from user generated in the previous step

Final steps

  • Install and start ha-devireg-mqtt-addon once so that new folder is generated inside addon_configs
  • Copy devi_config.json and mqtt_config.json from local machine (to the folder in homeassistant) which was generated inside addon_configs
  • Restart ha-devireg-mqtt-addon and check addon’s logs that there’s no connection errors
1 Like

I saw compiled ha-devi-mqtt.jar in releases. I think you can skip building part and just download and run ha-devi-mqtt.jar to generate config files

https://github.com/igor-podpalchenko/ha-devi-mqtt/releases/download/v1.0.7/ha-devi-mqtt.jar

1 Like

Hi, Thank you so much. Now I have my thermostats connected and automated with nordpool electricity price. Let’s see how this all works in a longer run.

I have new version, that can fully generate devi_config.json on HA Addon side. It is still not one click:

0. Start Devismart MQTT addon. Check logs for message (devi_config.json not found. Running in waiting mode)
1. Install and Run Advanced SSH & Web Terminal https://github.com/hassio-addons/addon-ssh
2. Disable Protection mode Advanced SSH & Web Terminal
3. Click Open Web UI for Advanced SSH & Web Terminal
4. Enter in terminal `docker container ls -a | awk 'NR>1 {print $1, $2}' | grep 'devismart-mqtt'`
5. Look for CONTAINER ID for devismart-mqtt. Looks like 4b9fa34ad83e
6. Replace 4b9fa34ad83e with your id and Run  `docker exec -it 4b9fa34ad83e /config.sh`
7. Foloow instructions on screen. devi_config.json  should be saved to addon config folder.
8. Restart Devismart MQTT addon.
9. Check addon logs for message (Config Exists!) or list of autodiscovered items.
10. Go to MQTT Integration and check for Devi devices!

But I can not test it, because reach 10 users limit per thermostat and Android Devi app fails to delete old users :slight_smile:

version 0.3 beta is released:

  • Fixed Negative Power output for 3200 watt
  • MQTT config moved to GUI
  • experemental devi_config.json generation inside addon (not tested)

Who can test it?

1 Like

I would happly test it but I have stucked at step 4. Command does nothing just goes back to prompt, but I must admit I’m not a docker guy :slight_smile:

Merged Oleksiy Babenko changes to the main branch.

Looks like Devismart addon is not started. Try just

docker container ls -a | awk ‘NR>1 {print $1, $2}’

To see list of started addons.