DGuidoHD / OH2-cts700

OH2 TPC modbus connection to NILAN heat pump compact P with cts 700 touch control
GNU General Public License v3.0
3 stars 2 forks source link

Need some help to setup #2

Open maisun opened 5 years ago

maisun commented 5 years ago

Hi, I'm new to OH but very exited to see there is a possibility to control the device, thank you for the effort! I would very much like to try with my Nilan Compact P device comes with a CTS 700 control unit. I have connected the device to my network and managed to change the IPs to fit my network settings (from 192.168.5.107 to 192.168.1.XX). I have setup OH as a docker image in my NAS and managed to get going with some basic things (like adding a Xiaomi Gateway etc.). I have installed Modbus binding version 2.4 now but looks like it requires some configuration to work. Can you help to show me step by step how I could try your configuration? I'm a software engineer and have good sense of IT systems, so hopefully with your help I can start something. My final goal is to show controls in HomeKit (via Homebridge) if that matters. Thank you very much in advance!

declan-kelly commented 4 years ago

Hi,

I have also tried using these files. Is there a sitemap file also required? What version of the Nilan Modbus documentation is used here as I am trying to understand which parts of the code align with the documents?

Thanks, Declan.

DGuidoHD commented 4 years ago

Hi, I am currently in vacation. I haven’t worked on this for a while, mainly as the modbus documentation of nilan seems to be a bit outdated and as I didn’t understand how to write the passphrase via modbus to the cts700. Regards, Guido

----- Ursprüngliche Mail ----- Von: declan-kelly notifications@github.com An: DGuidoHD/OH2-cts700 OH2-cts700@noreply.github.com CC: Subscribed subscribed@noreply.github.com Gesendet: Tue, 27 Aug 2019 23:06:32 +0200 (CEST) Betreff: Re: [DGuidoHD/OH2-cts700] Need some help to setup (#2)

Hi,

I have also tried using these files. Is there a sitemap file also required? What version of the Nilan Modbus documentation is used here as I am trying to understand which parts of the code align with the documents?

Thanks, Declan.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/DGuidoHD/OH2-cts700/issues/2#issuecomment-525483106

jakobmoll commented 4 years ago

Hi

I've gotten this working using modbus TCP setup. I'm not using OH2, but Home-Assistant, but I'm thinking the info I've dragged out of various sources might be of use anyhow. My setup of sensors (reading values) are:

https://gist.github.com/jakobmoll/2d3641f76686bd23ff2b9637d2ff19ad

Not all registers support writing data to (eg. getting the air temp), but writing to eg. nilan_air_setpoint supports this.

Hope this info is usable in it's HA form.

/jakob

Tequilla019 commented 4 years ago

@jakobmoll: I'm also trying to get this working, I'm able to read out all this stuff but I'm not able to write back. I would like to change fan speed and set room temp. Do you have any hints for me? I'm also using HA.

Thx ;)

jakobmoll commented 4 years ago

It might be a bit offtopic to cover HA here, but I've made an automation that writes to the correct register, when updating a dropdown in HA, my action template is:

data_template:
  address: 4747
  hub: nilan
  unit: 1
  value: '{{trigger.to_state.state | int + 100 | round(0) }}'
service: modbus.write_register
maisun commented 4 years ago

Hi, I did manage to get some function work in OpenHab - I found different firmware versions seem to use different registers. I have very basic control of the device exposed in HomeKit (including ventilation, hot water temp, hot water electric heater on/off etc), but I'm still struggling to find out how to get the rest to work......

maisun commented 4 years ago

It might be a bit offtopic to cover HA here, but I've made an automation that writes to the correct register, when updating a dropdown in HA, my action template is:

data_template:
  address: 4747
  hub: nilan
  unit: 1
  value: '{{trigger.to_state.state | int + 100 | round(0) }}'
service: modbus.write_register

Hi, I looked through your configuration and have a few questions which I hope you don't mind: 1) Do you know what it means by "nilan_active_cooling"? 2) I tried "nilan_filter_compressor_control" and the value returned is 40 - what does it mean? 3) The registers between 4703 and 4711 (the last part for yaml), I got most of them 0, what does it mean by "CompressorX Control"? The document doesn't really say much. Thanks in advance!

Tequilla019 commented 4 years ago

It might be a bit offtopic to cover HA here, but I've made an automation that writes to the correct register, when updating a dropdown in HA, my action template is:

data_template:
  address: 4747
  hub: nilan
  unit: 1
  value: '{{trigger.to_state.state | int + 100 | round(0) }}'
service: modbus.write_register

Hi Jakob, I konw that this is offtopic to discuss HA things in an OH thread.... ;) and big thanks for the template. Its working for setting the Air speed. I have tried that also for setting the room temp. But If I set the temp in HA to 23, Nilan shows me on the display 12. Is this working in your configuration or do I have to reconfigure something?? Sorry, but I'm note a good programmer ;)

Thx and br, Volker

jakobmoll commented 4 years ago

Hi all

I would really suggest you take questions to the HA community forum - in this way, other HA users will benefit from the answers, and we won't pollute this thread. There is plenty of topics regarding this already:

https://community.home-assistant.io/search?q=nilan

/jakob

maisun commented 4 years ago

Hi all

I would really suggest you take questions to the HA community forum - in this way, other HA users will benefit from the answers, and we won't pollute this thread. There is plenty of topics regarding this already:

https://community.home-assistant.io/search?q=nilan

/jakob Hi Jakob, do you have a chance to check my questions? It’s not HA related but related to the registers, thank you in advance!

jakobmoll commented 4 years ago

Hi all I would really suggest you take questions to the HA community forum - in this way, other HA users will benefit from the answers, and we won't pollute this thread. There is plenty of topics regarding this already: https://community.home-assistant.io/search?q=nilan /jakob Hi Jakob, do you have a chance to check my questions? It’s not HA related but related to the registers, thank you in advance!

It might be a bit offtopic to cover HA here, but I've made an automation that writes to the correct register, when updating a dropdown in HA, my action template is:

data_template:
  address: 4747
  hub: nilan
  unit: 1
  value: '{{trigger.to_state.state | int + 100 | round(0) }}'
service: modbus.write_register

Hi, I looked through your configuration and have a few questions which I hope you don't mind:

  1. Do you know what it means by "nilan_active_cooling"?

It doesn't seem that the active cooling part is controllable via writing to this modbus register. I haven't had any luck with activating the active cooling this way.

  1. I tried "nilan_filter_compressor_control" and the value returned is 40 - what does it mean?

As the the value (unit) - I don't have any input - I don't actively use it for anytning.

  1. The registers between 4703 and 4711 (the last part for yaml), I got most of them 0, what does it mean by "CompressorX Control"?

again - I don't have any input - some of the sensors might make sense in other installations/hardware configurations.

The document doesn't really say much. Thanks in advance!

No: the documentation isn't really that helpful, and the values I've picked up have been extracted from an older version of the documentation. It doesn't seem that there is much help to get with updated information from Nilan.

/jakob

maisun commented 4 years ago

Hi all I would really suggest you take questions to the HA community forum - in this way, other HA users will benefit from the answers, and we won't pollute this thread. There is plenty of topics regarding this already: https://community.home-assistant.io/search?q=nilan /jakob Hi Jakob, do you have a chance to check my questions? It’s not HA related but related to the registers, thank you in advance!

It might be a bit offtopic to cover HA here, but I've made an automation that writes to the correct register, when updating a dropdown in HA, my action template is:

data_template:
  address: 4747
  hub: nilan
  unit: 1
  value: '{{trigger.to_state.state | int + 100 | round(0) }}'
service: modbus.write_register

Hi, I looked through your configuration and have a few questions which I hope you don't mind:

  1. Do you know what it means by "nilan_active_cooling"?

It doesn't seem that the active cooling part is controllable via writing to this modbus register. I haven't had any luck with activating the active cooling this way.

  1. I tried "nilan_filter_compressor_control" and the value returned is 40 - what does it mean?

As the the value (unit) - I don't have any input - I don't actively use it for anytning.

  1. The registers between 4703 and 4711 (the last part for yaml), I got most of them 0, what does it mean by "CompressorX Control"?

again - I don't have any input - some of the sensors might make sense in other installations/hardware configurations.

The document doesn't really say much. Thanks in advance!

No: the documentation isn't really that helpful, and the values I've picked up have been extracted from an older version of the documentation. It doesn't seem that there is much help to get with updated information from Nilan.

/jakob

Thanks! It’s annoying their cts-700 document isn’t good enough :-(

maisun commented 4 years ago

Hi all I would really suggest you take questions to the HA community forum - in this way, other HA users will benefit from the answers, and we won't pollute this thread. There is plenty of topics regarding this already: https://community.home-assistant.io/search?q=nilan /jakob Hi Jakob, do you have a chance to check my questions? It’s not HA related but related to the registers, thank you in advance!

It might be a bit offtopic to cover HA here, but I've made an automation that writes to the correct register, when updating a dropdown in HA, my action template is:

data_template:
  address: 4747
  hub: nilan
  unit: 1
  value: '{{trigger.to_state.state | int + 100 | round(0) }}'
service: modbus.write_register

Hi, I looked through your configuration and have a few questions which I hope you don't mind:

  1. Do you know what it means by "nilan_active_cooling"?

It doesn't seem that the active cooling part is controllable via writing to this modbus register. I haven't had any luck with activating the active cooling this way.

  1. I tried "nilan_filter_compressor_control" and the value returned is 40 - what does it mean?

As the the value (unit) - I don't have any input - I don't actively use it for anytning.

  1. The registers between 4703 and 4711 (the last part for yaml), I got most of them 0, what does it mean by "CompressorX Control"?

again - I don't have any input - some of the sensors might make sense in other installations/hardware configurations.

The document doesn't really say much. Thanks in advance!

No: the documentation isn't really that helpful, and the values I've picked up have been extracted from an older version of the documentation. It doesn't seem that there is much help to get with updated information from Nilan.

/jakob

Hi, sorry one more question. Where did you find the register VAL_DEV_DO5 is for active cooling? I read the document there are a list of those digital outputs, but no description on what they are used for :-( I’m trying the find the status of the compressor - if it is cooling, heating water or etc.