It would help more for you to share your modbus config and a link to the manual you have for your device please?
Hi all,
i have found this topic having really usefull information.
i have been searching for a really long time to find information to input the CCGX in HA and i could not find anywhere right information.
Using this info i think i would go for Modbus instead of MQTT.
Still i have a few troubles to know where to start now.
Does anyone have more information regarding how i can install Modbus on my HA installation? Iām rather new to this and a bit of help in how i can make the information into my dashboard would really be appreciated .
Thanks
There is no useful manual for it, other than this http://www.hi-flying.com/elfin-ew10-elfin-ew11
Regarding the hassio config itās just de default with a different port and ip
Looking for someone with a similar setup who has gotten it to work
If you can, please post your config so I can confirm that is not the problem.
You also need the manual for the Eastron modbus kwh-meterā¦thats where the information to connect to the registers will be.
Cheers.
Hi to all,
i would integrate home assistant with my webserver modbus slave tcp.
Is there a possibility to see if integration is ok or not?
Iāve anything in my home assistant logs.
Configuration.yaml:
#ModBus Ave
modbus:
name: ave
type: TCP
host: 192.168.1.10
port: 502
A switch test:
- platform: modbus
coils:
- name: Switch1
hub: ave
slave: 1
coil: 13
- name: Switch2
slave: 2
coil: 14
registers:
- name: Register1
hub: ave
slave: 1
register: 11
command_on: 1
command_off: 0
Log:
Invalid config for [modbus]: extra keys not allowed @ data['modbus'][0]['host']. Got None
not a valid value for dictionary value @ data['modbus'][0]['type']. Got None
required key not provided @ data['modbus'][0]['baudrate']. Got None
required key not provided @ data['modbus'][0]['bytesize']. Got None
required key not provided @ data['modbus'][0]['method']. Got None
required key not provided @ data['modbus'][0]['parity']. Got None
required key not provided @ data['modbus'][0]['stopbits']. Got None. (See /config/configuration.yaml, line 45).
Thank you so much for any help.
Regards,
Alessandro
Hi @alessandro.bardi You have a problem in your modbus hub config.
Your āTCPā is not the same as the corrrect ātcpā
See the docs here for the correct format for a modbus hub.
# Example configuration.yaml entry for a TCP connection
modbus:
name: hub1
type: tcp
host: IP_ADDRESS
port: 2020
Fix that and test again and you could be good to go I think!
Hi Steave,
thanks for your reply.
Iāve fix that but now iāve these errors:
Invalid config for [switch.modbus]: required key not provided @ data['coils'][0]['slave']. Got None. (See ?, line ?).
Iām newby on modbus, i donāt know where can i take coils, slave and register numbers from my modbus.
Thank you so much.
Regards,
Alessandro
@alessandro.bardi Progress at least as the hub errors are gone.
You need to consult the manual for your modbus device to obtain that information.
Iāve this scheme and i would control only ā44ABRXā:
The question is: how can i check the status of my entities?
Which code identify a single light?
Is there a guide to study the mechanism?
Thanks for your patience,
Alessandro
Hi,
finally iāve found all registers of my lights.
Iāve a bit problem with output values of my thermostat:
Thermostat temp goes out from Modbus in HEX value like this: ā80AFā
I would keeps out the first two bytes (80) and convert to decimal the others two (AF).
Iāve tried with this code but climate entitiy doesnāt create from HA.
Thanks in advance for any help,
Alessandro
When I bumped into this error "Invalid config for [switch.modbus]: required key not provided @ data[ācoilsā][0][āslaveā]. Got None. (See ?, line ?). ", I didnāt have a āslaveā defined. The documentation mentions āslaveā is optional for Modbus over TCP, but for me it was definitely ārequiredā.
This works for me on a Sealevel 463-E :
switch:
- platform: modbus
scan_interval: 3
coils:
- name: sea0
hub: sealevel
slave: 1
coil: 0
- name: sea1
hub: sealevel
slave: 1
coil: 1
With the above, the switches will show up on the overview page and be functional.
I donāt manage to show my modbus climate on Hassio
Iāve this code on my climates.yaml:
But no climate showed on Hassio.
This is my modbus bit istructions:
The temp values are in bin or hex format?
I donāt Know, and maybe the issue is there.
Any help is apreciated.
Regards,
Alessandro
It looks like:
40128 = Use a unsigned integer /10. value= 202 - 20.2 C
40129= setpoint, you have to build the integer from the binary, combination of o/off in b13, and the SP , same format. Setpoint of 20.2 C = 202 integer in , since this will always be below 100,
then you can use a single word write on b7-b0,
You probably cannot use the Climate object, try with read/write Modbus first.
Download the Chipkin Modbus testing tool, you can build your numbers, and read/write to to modbus registers.
salve,
stĆ² provando a far dialogare HA con un simulatore PLC server, la comunicazione avviene, e se cambio i dati sul PLC me li cambia anche nella plancia di HA, ma se volessi fare il contrario, ovvero scrivere da HA e far cambiare il valore nel PLC ĆØ possibile?