Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need some help to setup #2

Open
maisun opened this issue May 30, 2019 · 13 comments
Open

Need some help to setup #2

maisun opened this issue May 30, 2019 · 13 comments

Comments

@maisun
Copy link

maisun commented May 30, 2019

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
Copy link

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
Copy link
Owner

DGuidoHD commented Aug 31, 2019 via email

@jakobmoll
Copy link

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
Copy link

@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
Copy link

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
Copy link
Author

maisun commented Jun 22, 2020

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
Copy link
Author

maisun commented Jun 22, 2020

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
Copy link

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
Copy link

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
Copy link
Author

maisun commented Jun 24, 2020

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
Copy link

jakobmoll commented Jun 24, 2020

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
Copy link
Author

maisun commented Jun 24, 2020

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
Copy link
Author

maisun commented Jun 24, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants