JH-Soft-Technology / InelsForHass

Home assistant integration for iNels used pyInels library (https://github.com/JH-Soft-Technology/pyinels)
MIT License
8 stars 7 forks source link

Configuration help #14

Open hanyzzz82 opened 1 year ago

hanyzzz82 commented 1 year ago

Hello, thank you for this integration!

May I kindly ask you to provide me with more details about the configuration?

Service url? - is it url of the Inels CPU or IMM?

Is it compatible with Inels 2nd generation?

Thanks a lot Jan Fiala

jhoralek commented 8 months ago

Sorry for late respons,

I didn't came accross this project since last update.

IMM whole url has to be provided. http://ip_address

CU2 may or may not work. It depends.

I think lights and switches should work. Try it and you'll see.

If some error will rice, then do not hesitate to contact me. We can solve it together.

Kind regards

JH.

hanyzzz82 commented 8 months ago

Hi, thanks for your answer.

If it communicates thru the connection server and not directly with CU, then I suppose it should work also with Inels Gen2. The connection server is identical for Inels 2 and 3.

I tried to setup a connection, but when I start InelsForHass, a window with 3 fields without any descriptions appears.

I suppose the first one is for IMM url in format http://ip_address and the two inelshass next fields? port, credentials...?

I tried various combination but without success..

Thanks in advance ;-) Regards JF

jhoralek commented 8 months ago

First is url of connection server, second is port 8001 and the last one does nothing.

You can put string CU2 or whatever you want.

The last one should have been to recognize the CU unit type, but it is not implemented now.

Kind regards

JH

hanyzzz82 commented 8 months ago

Thanks for the hint! Now I am able to access the IMM, see the entities nevertheless all of them are unavailable. IMM is up and running, I havent noticed any fruther setting options in Hass integration so I suppose it might be caused by the old 2nd gen INELS. Or any other idea?

jhoralek commented 8 months ago

Any HA log?

hanyzzz82 commented 8 months ago

home-assistant_inels_2024-01-08T18-40-24.918Z.log

jhoralek commented 8 months ago

I found error wit some kind of entity which causes problems.

Do you have any unix system in your local network?

I'll prepare python script which will get all raw data from your CU unit. After that, I'll debug it and correct integration to avoid this issue.

What I need from you is local IP address of your IMM. I need to use it in that script.

But not today, Mandalorian is waiting.✌️

Kind regards

JH

hanyzzz82 commented 8 months ago

Of course, no stress. :-) I am not aware of any UNIX system in my local network. IMM IP: 192.168.88.115

thx JF

po 8. 1. 2024 v 20:08 odesílatel Jiří Horálek @.***> napsal:

I found error wit some kind of entity which causes problems.

Do you have any unix system in your local network?

I'll prepare python script which will get all raw data from your CU unit. After that, I'll debug it and correct integration to avoid this issue.

What I need from you is local IP address of your IMM. I need to use it in that script.

But not today, Mandalorian is waiting.✌️

Kind regards

JH

— Reply to this email directly, view it on GitHub https://github.com/JH-Soft-Technology/InelsForHass/issues/14#issuecomment-1881667205, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYMFMKHPC6S4H5HPSJUGM2DYNQ72HAVCNFSM6AAAAAA3UTPNF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRGY3DOMRQGU . You are receiving this because you authored the thread.Message ID: @.***>

hanyzzz82 commented 7 months ago

Hi, is there any chance to investigate the errors in the near future?

Thanks a lot for your feedback ;-)

JF

jhoralek commented 7 months ago

sorry for late response.

Here is a setup what to do to get raw data with all of your devices.

https://github.com/JH-Soft-Technology/pyinels/issues/27#issuecomment-1576908385

hanyzzz82 commented 7 months ago

Hi, thanks for your reply.

As Im not an advanced user in programming, do I understand well I need to go thru the following steps:

  1. I run this script in HA and save it as devices.py

from pyinels.api import Api from unittest import TestCase

api = Api("http://IP_ADDRESS_OF_CONNECTION_SERVER", 8001, "CU3") rooms = api.getRooms()

with open('raw_data.txt', 'w',encoding='utf-8') as f: for room in rooms: devices = api.getRoomDevicesRaw(room) f.write(devices) f.write('\n')

  1. in next step I need to update the init.py as described in https://github.com/JH-Soft-Technology/pyinels/pull/28

By the way, I use integration InelsForHass, not Pyinels. Is there any difference between them?

I'm sorry for stupid questions.

čt 22. 2. 2024 v 14:19 odesílatel Jiří Horálek @.***> napsal:

sorry for late response.

Here is a setup what to do to get raw data with all of your devices.

JH-Soft-Technology/pyinels#27 (comment)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jhoralek commented 7 months ago

Hi hanyzzz82,

nothing to change inside of the integration code.

Teoretically you can create and run the script in HA terminal. In HA install visualstudiocode add-on.

VS Code is IDE which can be use to programing in many common languages. You can create and edit files, saveing them and executing.

Better way is to create and run this script on the system where yours HA is runing. Any Linux, Unix, HassOS or so.

If you're not sure how to do it, I can make some short tutorial.

Kind regards

Jiri

hanyzzz82 commented 7 months ago

Hi,

I have already tried to run the script in visualstudiocode but without success.

It would be kind of you to make a short tutorial for this. I'm operating HA on Raspberry PI.

Thanks in advance BR Jan

pá 23. 2. 2024 v 13:16 odesílatel Jiří Horálek @.***> napsal:

Hi hanyzzz82,

nothing to change inside of the integration code.

Teoretically you can create and run the script in HA terminal. In HA install visualstudiocode add-on.

VS Code is IDE which can be use to programing in many common languages. You can create and edit files, saveing them and executing.

Better way is to create and run this script on the system where yours HA is runing. Any Linux, Unix, HassOS or so.

If you're not sure how to do it, I can make some short tutorial.

Kind regards

Jiri

— Reply to this email directly, view it on GitHub https://github.com/JH-Soft-Technology/InelsForHass/issues/14#issuecomment-1961224289, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYMFMKCHAFFLXGFDHHJGWALYVCCAJAVCNFSM6AAAAAA3UTPNF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRRGIZDIMRYHE . You are receiving this because you authored the thread.Message ID: @.***>

hanyzzz82 commented 3 months ago

Hi, any chance to find a little time to make a small tutorial? Thaks a lot in advance ;-)

Regards Jan

hanyzzz82 commented 1 month ago

Hi there, question - should I run the script "devices.py" only once or it should run continuously? Thanks Jan

jhoralek commented 1 month ago

Hi there, question - should I run the script "devices.py" only once or it should run continuously? Thanks Jan

Getting devices to the HA integration is running only once at the begining.

You can run it on your own outside of the integration.

Sorry for late response, but I'm very bussy at the moment.

Kind regards

J.H.

hanyzzz82 commented 1 month ago

Hi, OK and what should be done in the next step? Or it's enough to run the script and then the entities should as expected? Thx a lot BR Jan Fiala

On Wed 7. 8. 2024 at 11:04, Jiří Horálek @.***> wrote:

Hi there, question - should I run the script "devices.py" only once or it should run continuously? Thanks Jan

Getting devices to the HA integration is running only once at the begining.

You can run it on your own outside of the integration.

Sorry for late response, but I'm very bussy at the moment.

Kind regards

J.H.

— Reply to this email directly, view it on GitHub https://github.com/JH-Soft-Technology/InelsForHass/issues/14#issuecomment-2272983015, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYMFMKFYWL7V3OBLFFX2MWLZQHPIHAVCNFSM6AAAAAA3UTPNF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZSHE4DGMBRGU . You are receiving this because you authored the thread.Message ID: @.***>