Comments (26)
Thanks, I will add a beta release ASAP, so I can get more information and add all of the entities your device supports.
from nilan.
from nilan.
You need to enable debugging for custom_components.nilan
https://www.home-assistant.io/integrations/logger/
from nilan.
If I understood you correctly:
Logging setup is:
logger:
default: debug
logs:
custom_components.nilan: debug
DEBUG (MainThread) [pymodbus.client.sync] Connection to Modbus server established. Socket ('192.168.1.155', 49515)
DEBUG (MainThread) [pymodbus.transaction] Current transaction state - IDLE
DEBUG (MainThread) [pymodbus.transaction] Running transaction 1
DEBUG (MainThread) [pymodbus.transaction] SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1e 0x3 0x3 0xe8 0x0 0x1
DEBUG (MainThread) [pymodbus.client.sync] New Transaction state 'SENDING'
DEBUG (MainThread) [pymodbus.transaction] Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
DEBUG (MainThread) [pymodbus.transaction] Incomplete message received, Expected 64008 bytes Recieved 14 bytes !!!!
DEBUG (MainThread) [pymodbus.transaction] Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
DEBUG (MainThread) [pymodbus.transaction] RECV: 0xfa 0x7 0x13 0x2 0xfa 0x2 0x28 0x5f 0x2a 0x72 0xa5 0xc1 0xfa 0xff
DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0xfa 0x7 0x13 0x2 0xfa 0x2 0x28 0x5f 0x2a 0x72 0xa5 0xc1 0xfa 0xff
DEBUG (MainThread) [pymodbus.framer.socket_framer] Frame check failed, ignoring!!
DEBUG (MainThread) [pymodbus.transaction] Getting transaction 1
DEBUG (MainThread) [pymodbus.transaction] Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
from nilan.
Yes. Then try setting up the integration.
from nilan.
This was the result in the logs when I tried to put up the integration.
from nilan.
For custom_components.nilan
from nilan.
If you get the device not supported error when setting up and you have debug logging on, you should get a line in the logs where your device type number is stated.
from nilan.
The error is "Invalid response From the device" with these logs.
from nilan.
Oh, sorry, I didn't read the header. You should configure your bridge to a state where you got unsupported device, or am I understanding something wrong?
from nilan.
I changed the Sharewave configuration and integration now tells : "Unsupported device"
and logs are:
(MainThread) [pymodbus.client.sync] Connection to Modbus server established. Socket ('192.168.1.155', 43239)
(MainThread) [pymodbus.transaction] Current transaction state - IDLE
(MainThread) [pymodbus.transaction] Running transaction 1
(MainThread) [pymodbus.transaction] SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1e 0x3 0x3 0xe8 0x0 0x1
(MainThread) [pymodbus.client.sync] New Transaction state 'SENDING'
(MainThread) [pymodbus.transaction] Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
(MainThread) [pymodbus.transaction] Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
(MainThread) [pymodbus.transaction] RECV: 0x0 0x2 0x0 0x0 0x0 0x5 0x1e 0x3 0x2 0x0 0x15
(MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0x2 0x0 0x0 0x0 0x5 0x1e 0x3 0x2 0x0 0x15
(MainThread) [pymodbus.factory] Factory Response[ReadHoldingRegistersResponse: 3]
(MainThread) [pymodbus.transaction] Adding transaction 1
(MainThread) [pymodbus.transaction] Getting transaction 1
(MainThread) [pymodbus.transaction] Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
(MainThread) [custom_components.nilan.config_flow] Device Type 21 not found in supported devices list
from nilan.
Nice. Now if you could provide the pictures.
from nilan.
You can also edit the converted with Shareware vircom application:
There's also more options under "Advanced"
from nilan.
I meant the pictures mentioned in the readme file. A picture of the device type plate and if you have a touch HMI a picture of the info page.
from nilan.
No touch screen. Ordinary CTS602 panel controlled device.
from nilan.
Added a beta release. If you could take a screenshot of device firmware version and of sensor ModBus Version.
from nilan.
Seems to work! Excellent!
Modbus version = 8
Device Software version =2.31.d
Couple of errors showing in the logs:
ERROR (SyncWorker_6) [homeassistant.components.modbus.modbus] Pymodbus: Nilan: Exception Response(132, 4, IllegalAddress)
ERROR (SyncWorker_7) [homeassistant.components.modbus.modbus] Pymodbus: Nilan: Exception Response(131, 3, IllegalAddress)
from nilan.
Added a beta for trying to fix those errors. I'm adding the entities I can, but in the mean-while can you provide me a picture of your panel from:
from nilan.
Added better support with 1.0.22B. I couldn't find documentation for ModBus Version 8, so if some entities don't work or you get Modbus errors, please do tell.
from nilan.
Seems to be working until the x.25b -> x.25 stopped the connection. I'll look at the logs.
My usermanual seems to be only in finnish.
from nilan.
Hi and thanks in advance for great integration. I'm quite noob with HA and now I'm building my home automation from scratch. At the moment I'm running Nilan with openHAB and USB-RS485 converter in my first raspberry pi. I assume that this has to be removed and buy i.e USR-TCP232-410S module to start configuring/building connection to your Nilan integration with my second raspberry pi (which will hopefully be the only device in future). I have old CTS602 (from 2015). Sorry for unrelated question.
from nilan.
Seems to be working until the x.25b -> x.25 stopped the connection. I'll look at the logs.
My usermanual seems to be only in finnish.
Yes. I wont add your device to master until it works in a sufficient manner. Use only the beta releases until then.
You can download the english version from https://www.en.nilan.dk/downloads/archives
from nilan.
Hi and thanks in advance for great integration. I'm quite noob with HA and now I'm building my home automation from scratch. At the moment I'm running Nilan with openHAB and USB-RS485 converter in my first raspberry pi. I assume that this has to be removed and buy i.e USR-TCP232-410S module to start configuring/building connection to your Nilan integration with my second raspberry pi (which will hopefully be the only device in future). I have old CTS602 (from 2015). Sorry for unrelated question.
Please open a new issue if you have furter questions. At this point USB adaptors are not supported unfortunately. It will hopefully be added at some point in the future. So yes you assume correctly.
from nilan.
This is Nilan EC9 models equivalent model VP18 M2 EK
Btw. for some reason HACS always dowloads 1.25 although you choose 1.25b or 1.23b beta version.
from nilan.
Yes, I know. I just want a picture from your physical HMI panel when you are at SHOW DATA -> TYPE for documentation purposes. I am working on a bigger update to the integration and wanted to release tested work on 1.0.25. The reason why HACS keeps wanting to update to this is because it is newer. There will be a 1.1.0B available in the near future, which should in theory support your device properly.
from nilan.
Did the invalid register errors go away with release 1.1.1?
from nilan.
Related Issues (20)
- If connection fails during setup, integration must be reloaded
- Add support for VGU180 EK HOT 4
- Add support for Nilan CompactS HOT 3
- Fan mode missing from automation actions HOT 2
- Nilan Compact P Air 9 support
- CTS700 on a Compact P HOT 2
- Latest update created orphaned device HOT 6
- Can't initialize integration after 2024.4 HOT 8
- Could not read errors - poss since 1.2.14 HOT 11
- Elfin EW11 HOT 2
- Modbus Error: [Connection] Not connected[AsyncModbusTcpClient 192.168.68.122:502] HOT 1
- 1.2.15 causes MODBUS communication to fail HOT 2
- Could not exclusively lock port /dev/ttyUSB0 HOT 1
- Failed to call service HOT 1
- Home Assistant 2023.9 broke Nilan integration - "Failed to set up"
- Doesn't work with 2023.9? HOT 1
- Issues with 2023.9.0 and 2023.9.1 Core update HOT 1
- Feature request - NILAN Gateway integration directly? HOT 1
- Set Fan Level
- Central heating control HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nilan.