yozik04 / nibe-mqtt

Nibe MQTT integration to use with HomeAssistant MQTT Autodiscovery
GNU General Public License v3.0
26 stars 8 forks source link

NIBE SMOS40 + F2120 testing #14

Closed nkrepo closed 1 year ago

nkrepo commented 1 year ago

I am trying to test 0.3.0 release with NIBE SMOS40 + F2120 with docker.

My command to start docker is the following: docker run -ti --rm --network=host -v "/home/testuser/serverconfig/docker/nibe-mqtt/nibe-config.yaml:/config/nibe-mqtt/config.yaml:ro" yozik04/nibe-mqtt:latest

and a simple config to query one modbus register is

mqtt:
  host: localhost:1883
  protocol: 5
  username: testuser
  password: testpassword
nibe:
  model: SMOS40
  word_swap: true
  modbus:
    url: tcp://192.168.2.18:502
    slave_id: 1
  poll:
    coils:
      - current-outdoor-temperature-bt1-30001
      - average-temperature-bt1-30037
      - hot-water-top-bt7-30008
      - hot-water-charging-bt6-30009

and I get the following response :

2022-10-19 16:12:34,739 - INFO     - Running Nibe MQTT 0.3.0 service with Nibe 1.0.0 lib
2022-10-19 16:12:39,872 - INFO     - Polling coil current-outdoor-temperature-bt1-30001: last_update = None
2022-10-19 16:12:39,892 - WARNING  - Poll current-outdoor-temperature-bt1-30001 failed: Function code is not an allowable action for the server.
2022-10-19 16:12:39,893 - INFO     - Polling coil average-temperature-bt1-30037: last_update = None
2022-10-19 16:12:39,904 - WARNING  - Poll average-temperature-bt1-30037 failed: sequence item 0: expected a bytes-like object, int found
2022-10-19 16:12:39,904 - INFO     - Polling coil hot-water-top-bt7-30008: last_update = None
2022-10-19 16:12:39,908 - WARNING  - Poll hot-water-top-bt7-30008 failed: Function code is not an allowable action for the server.
2022-10-19 16:12:39,908 - INFO     - Polling coil hot-water-charging-bt6-30009: last_update = None
2022-10-19 16:12:39,919 - WARNING  - Poll hot-water-charging-bt6-30009 failed: sequence item 0: expected a bytes-like object, int found
2022-10-19 16:12:44,925 - INFO     - Polling coil current-outdoor-temperature-bt1-30001: last_update = None
2022-10-19 16:12:44,936 - WARNING  - Poll current-outdoor-temperature-bt1-30001 failed: Function code is not an allowable action for the server.
2022-10-19 16:12:44,936 - INFO     - Polling coil average-temperature-bt1-30037: last_update = None
2022-10-19 16:12:44,946 - WARNING  - Poll average-temperature-bt1-30037 failed: sequence item 0: expected a bytes-like object, int found
2022-10-19 16:12:44,947 - INFO     - Polling coil hot-water-top-bt7-30008: last_update = None
2022-10-19 16:12:44,951 - WARNING  - Poll hot-water-top-bt7-30008 failed: Function code is not an allowable action for the server.
2022-10-19 16:12:44,951 - INFO     - Polling coil hot-water-charging-bt6-30009: last_update = None
2022-10-19 16:12:44,963 - WARNING  - Poll hot-water-charging-bt6-30009 failed: sequence item 0: expected a bytes-like object, int found
2022-10-19 16:12:49,969 - INFO     - Polling coil current-outdoor-temperature-bt1-30001: last_update = None

I have used the Rilheva Modbus Poll to poll some registers based on the info of smos40.json and the values match the info on the SMOS40 LCD: image

I am not sure what is going wrong.

For reference I am attaching photos from controller LCD , there is some drift between the modbus registers and the photos because they were not taken on the same time. image image

yozik04 commented 1 year ago

Hi @nkrepo. Sorry for taking so long to respond. Modbus connection method was in alpha phase when you asked. Now it is more major and should be working. Please try again with latest docker image. I pushed one an hour ago.

yozik04 commented 1 year ago

Try with 0.4.0