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

New sensors and various fixes #166

Merged
merged 5 commits into from
Oct 9, 2024
Merged

New sensors and various fixes #166

merged 5 commits into from
Oct 9, 2024

Conversation

miipekk-ihme
Copy link
Collaborator

@miipekk-ihme miipekk-ihme commented Oct 8, 2024

This PR includes the following changes:

  • Fix WantedSettings getting sometimes ignored (for example a fan speed change can get ignored because it is sent too soon after a remote temperature update packet).
  • Fix fan setting comparison (switching to QUIET fan setting was not working correctly).
  • Revert the compressor frequency pr Add support for compressor frequency in 16-bit format with 1 decimal. #163 because the new data seems to be the current input power and not the actual compressor frequency. It seems like the compressor frequency information is not available on all units.
  • Add a new current input power in Watts sensor.
  • Add a new total consumed energy in kWh sensor. Needs further updating later after figured out what happens when the 16-bit counter flips over (it could extend to new bytes).
  • Add a new total indoor unit runtime in hours. Needs further updating later after figured out what happens when the 24-bit counter flips over (it could extend to new bytes).

Please test and comment before merging.

The new sensors needs to be added to the YAML configuration also, for example:

climate:
  - platform: cn105
    id: hp
    name: ${friendly_name}
    icon: mdi:heat-pump
    visual:
      min_temperature: 16
      max_temperature: 31
      temperature_step:
        target_temperature: 0.5
        current_temperature: 0.1
    compressor_frequency_sensor:
      name: Compressor Frequency
    input_power_sensor:
      name: Input power
    kwh_sensor:
      name: Energy usage
    runtime_hours_sensor:
      name: Runtime hours
    outside_air_temperature_sensor:
      name: Outside air temperature
    vertical_vane_select:
      name: Vertical Vane
    horizontal_vane_select:
      name: Horizontal Vane
    isee_sensor:
      name: ISee Sensor
    auto_sub_mode_sensor:
      name: Auto submode sensor
    sub_mode_sensor:
      name: Submode sensor
    stage_sensor:
      name: Stage sensor
    remote_temperature_timeout: 30min
    debounce_delay : 400ms
    update_interval: 2.0s

Miika Pekkarinen added 5 commits October 6, 2024 16:40
… remote temperature update packet.

This should fix WantedSettings getting ignored (like fan speed change).
- Add a new sensor for current input power in Watts.
- Add a new sensor for total consumed energy in kWh.
- Add a new sensor for total indoor unit runtime in hours.
- Try to prevent outside air temperature sensor from changing to incorrect values when it's unavailable.
@phidauex
Copy link
Collaborator

phidauex commented Oct 8, 2024

Ran an initial test - the PR compiles and installs normally on my ESP8266 device. The new sensors don't throw any errors, but only show 0s, in both Idle and Operating states. Could just be that my units (MXZ-SM42NAMHZ outdoor and MSZ-GL15NA indoor) don't support these datapoints. Interesting to see if others get values here. I know the previous compressor frequency sensor also didn't generate values on my units.

image

FYI, for people new to testing ESPhome components, you can target a specific github branch from a PR using the below syntax. The 0s refresh forces it to pull a new copy each time you compile rather than caching for 24 hours.

external_components:
#  - source: github://echavet/MitsubishiCN105ESPHome
  - source: github://miipekk-ihme/MitsubishiCN105ESPHome@pr-3
    refresh: 0s

@enomam
Copy link

enomam commented Oct 9, 2024

I'm having a play around with this.
I'm getting values for input_power_sensor and kwh_sensor, but I'm no longer getting values for compressor_frequency_sensor (which was working on the main branch).

My indoor units are msz-ap50vg and two msz-ap35vg.
The outdoor unit is MXZ-5F100VGD-A1.

image

@MarkoPaasila
Copy link

All 3 new sensors; input_power_sensor, kwh_sensor, runtime_hours_sensor, work on MSZ-LN35. None of them work on a 15yr old MSZ-FD25. Nice work!

@MarkoPaasila
Copy link

Input Power sensor reports too low values. Here's compared to a shelly plug measuring:
image

@miipekk-ihme
Copy link
Collaborator Author

Input Power sensor reports too low values. Here's compared to a shelly plug measuring:

Thanks, this is really interesting. On my unit normal reported input power seems to bee around 500W and it goes up to about 2000W. And when compressor is off, the reading is between 6W to 12W depending on the fan speed. I have not yet checked these reading with a multimeter / clamp meter but those seem to correlate to the expected power levels and device specs. Maybe that sensor reading is different on different units. Would it be possible for you to capture few UART packets from the unit? For that you should change the log levels (change log level to DEBUG, and READ and WRITE tags to DEBUG to capture packets the communication):

logger:
  level: DEBUG
  logs:
    EVT_SETS : INFO
    WIFI : INFO
    MQTT : INFO
    WRITE_SETTINGS : INFO
    SETTINGS : INFO
    STATUS : INFO
    CN105Climate: WARN
    CN105: INFO
    climate: WARN
    sensor: WARN
    chkSum : INFO
    WRITE : DEBUG
    READ : DEBUG
    Header: INFO
    Decoder : INFO
    CONTROL_WANTED_SETTINGS: INFO

Then capture the logs to a file and provide these values:

$ esphome logs your_configuration.yaml | tee -a logging.txt

# After a while
$ tail -n 100 logging.txt | grep 'FC 62 01 30 10'
[17:01:05][D][READ:170]: FC 62 01 30 10 06 00 00 00 01 01 B9 06 D2 00 00 42 00 00 00 00 82 
[17:01:06][D][READ:170]: FC 62 01 30 10 09 00 00 00 06 00 00 00 00 00 00 00 00 00 00 00 4E 
[17:01:08][D][READ:170]: FC 62 01 30 10 02 00 00 01 01 09 01 03 00 00 8C AC 28 00 00 00 EC 
[17:01:08][D][READ:170]: FC 62 01 30 10 03 00 00 0C 00 8A AC AC FE 42 00 01 1B A0 00 00 70 
[17:01:08][D][READ:170]: FC 62 01 30 10 06 00 00 00 01 01 B9 06 D2 00 00 42 00 00 00 00 82 
[17:01:09][D][READ:170]: FC 62 01 30 10 09 00 00 00 06 00 00 00 00 00 00 00 00 00 00 00 4E 
[17:01:11][D][READ:170]: FC 62 01 30 10 02 00 00 01 01 09 01 03 00 00 8C AC 28 00 00 00 EC 
[17:01:11][D][READ:170]: FC 62 01 30 10 03 00 00 0C 00 8A AC AC FE 42 00 01 1B A0 00 00 70 
[17:01:11][D][READ:170]: FC 62 01 30 10 06 00 00 00 01 01 B9 06 D2 00 00 42 00 00 00 00 82 
[17:01:12][D][READ:170]: FC 62 01 30 10 09 00 00 00 06 00 00 00 00 00 00 00 00 00 00 00 4E 
[17:01:14][D][READ:170]: FC 62 01 30 10 02 00 00 01 01 09 01 03 00 00 8C AC 28 00 00 00 EC 
[17:01:14][D][READ:170]: FC 62 01 30 10 03 00 00 0C 00 8A AC AC FE 42 00 01 1B A0 00 00 70 
[17:01:14][D][READ:170]: FC 62 01 30 10 06 00 00 00 01 01 B9 06 D2 00 00 42 00 00 00 00 82 
[17:01:14][D][READ:170]: FC 62 01 30 10 09 00 00 00 06 00 00 00 00 00 00 00 00 00 00 00 4E 
[17:01:17][D][READ:170]: FC 62 01 30 10 02 00 00 01 01 09 01 03 00 00 8C AC 28 00 00 00 EC 

@miipekk-ihme
Copy link
Collaborator Author

I'm having a play around with this. I'm getting values for input_power_sensor and kwh_sensor, but I'm no longer getting values for compressor_frequency_sensor (which was working on the main branch).

My indoor units are msz-ap50vg and two msz-ap35vg. The outdoor unit is MXZ-5F100VGD-A1.

On my unit (MSZ-RW25VG-SC1 and MUZ-RW25VGHZ-SC1) the new compressor reading was incorrect and it seems to be the actual input power reading so I have reverted this PR to the previous old reading. My unit doesn't seem to provide compressor reading at all (it stays at zero), but instead provides the input power reading.

@echavet
Copy link
Owner

echavet commented Oct 9, 2024

Thank you for your work @miipekk-ihme

@echavet echavet merged commit ad62cdc into echavet:main Oct 9, 2024
4 checks passed
@MarkoPaasila
Copy link

MSZ-LN35

[20:37:17][D][READ:170]: FC 62 01 30 10 02 00 00 01 01 09 00 00 00 00 8C AC 46 00 00 00 D2 
[20:37:17][D][READ:170]: FC 62 01 30 10 03 00 00 0B 00 92 AA AA FE 42 00 19 5E 5D 00 00 55 
[20:37:17][D][READ:170]: FC 62 01 30 10 06 00 00 00 01 00 87 FC FB 00 00 42 00 00 00 00 96 
[20:37:18][D][READ:170]: FC 62 01 30 10 09 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 52 
[20:37:20][D][READ:170]: FC 62 01 30 10 02 00 00 01 01 09 00 00 00 00 8C AC 46 00 00 00 D2 
[20:37:20][D][READ:170]: FC 62 01 30 10 03 00 00 0B 00 92 AA AA FE 42 00 19 5E 5D 00 00 55 
[20:37:20][D][READ:170]: FC 62 01 30 10 06 00 00 00 01 00 87 FC FB 00 00 42 00 00 00 00 96 
[20:37:21][D][READ:170]: FC 62 01 30 10 09 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 52 
[20:37:23][D][READ:170]: FC 62 01 30 10 02 00 00 01 01 09 00 00 00 00 8C AC 46 00 00 00 D2 
[20:37:23][D][READ:170]: FC 62 01 30 10 03 00 00 0B 00 92 AA AA FE 42 00 19 5E 5D 00 00 55 
[20:37:23][D][READ:170]: FC 62 01 30 10 06 00 00 00 01 00 87 FC FB 00 00 42 00 00 00 00 96 
[20:37:24][D][READ:170]: FC 62 01 30 10 09 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 52 
[20:37:26][D][READ:170]: FC 62 01 30 10 02 00 00 01 01 09 00 00 00 00 8C AC 46 00 00 00 D2 
[20:37:26][D][READ:170]: FC 62 01 30 10 03 00 00 0B 00 92 AA AA FE 42 00 19 5E 5D 00 00 55 
[20:37:26][D][READ:170]: FC 62 01 30 10 06 00 00 00 01 00 87 FC FB 00 00 42 00 00 00 00 96 
[20:37:27][D][READ:170]: FC 62 01 30 10 09 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 52 
[20:37:29][D][READ:170]: FC 62 01 30 10 02 00 00 01 01 09 00 00 00 00 8C AC 46 00 00 00 D2 

@miipekk-ihme
Copy link
Collaborator Author

MSZ-LN35

Thank you for the UART communication log. The 0x06 status packet looks to have similar content so I can't see any reason why the input power would have a different scale on your unit. Other packets have also similar structure and data fields.

The 0x02 settings packet has one unidentified byte (index 17 from the beginning of the packet). I have a fixed value 0x28 there and you seem to have 0x46. That is something to monitor for a change.

When your kWh counter flips over soon, please capture a new communication log. That would be very helpful to see what happens then.

@jascdk
Copy link

jascdk commented Oct 10, 2024

I tried the new sensors on my Danish model - can't get any values either. I set the logger as suggested and got this:


[13:44:09][D][CYCLE:351]: 5a: Sending power request (0x09)
[13:44:09][D][WRITE:170]: FC 42 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 74 
[13:44:09][D][READ:170]: FC 62 01 30 10 09 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 53 
[13:44:09][D][CYCLE:366]: 5b: Receiving Power/Standby response
[13:44:09][D][text_sensor:064]: 'Stage Sensor': Sending state 'LOW'
[13:44:09][D][text_sensor:064]: 'Sub Mode Sensor': Sending state 'NORMAL'
[13:44:09][D][text_sensor:064]: 'Auto Sub Mode Sensor': Sending state 'AUTO_OFF'
[13:44:09][I][CYCLE:052]: 6: Cycle ended in 0.9 seconds (with timeout?:  NO)
[13:44:13][I][CYCLE:039]: 1: Cycle start
[13:44:13][D][CYCLE:311]: 2a: Sending settings request (0x02)
[13:44:13][D][WRITE:170]: FC 42 01 30 10 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B 
[13:44:13][D][READ:170]: FC 62 01 30 10 02 00 00 01 01 0F 00 00 00 00 03 94 00 00 00 00 B3 
[13:44:13][D][CYCLE:317]: 2b: Receiving settings response
[13:44:13][D][CYCLE:320]: 3a: Sending room °C request (0x03)
[13:44:13][D][WRITE:170]: FC 42 01 30 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7A 
[13:44:14][D][READ:170]: FC 62 01 30 10 03 00 00 09 00 00 A6 00 00 00 00 00 00 00 00 00 AB 
[13:44:14][D][CYCLE:326]: 3b: Receiving room °C response
[13:44:14][I][STATUS:134]: [received       ]-> [room C°: 19.0, operating: NO , compressor freq: 0.0 Hz]
[13:44:14][I][STATUS:134]: [current        ]-> [room C°: 19.0, operating: NO , compressor freq: 0.0 Hz]
[13:44:14][D][CYCLE:329]: 4a: Sending status request (0x06)
[13:44:14][D][WRITE:170]: FC 42 01 30 10 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 77 
[13:44:14][D][READ:170]: FC 62 01 30 10 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 57 
[13:44:14][D][CYCLE:347]: 4b: Receiving status response
[13:44:14][I][STATUS:134]: [received       ]-> [room C°: 19.0, operating: NO , compressor freq: 0.0 Hz]
[13:44:14][I][STATUS:134]: [current        ]-> [room C°: 19.0, operating: NO , compressor freq: 0.0 Hz]
[13:44:14][D][CYCLE:351]: 5a: Sending power request (0x09)
[13:44:14][D][WRITE:170]: FC 42 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 74 
[13:44:14][D][READ:170]: FC 62 01 30 10 09 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 53 
[13:44:14][D][CYCLE:366]: 5b: Receiving Power/Standby response
[13:44:14][D][text_sensor:064]: 'Stage Sensor': Sending state 'LOW'
[13:44:14][D][text_sensor:064]: 'Sub Mode Sensor': Sending state 'NORMAL'
[13:44:14][D][text_sensor:064]: 'Auto Sub Mode Sensor': Sending state 'AUTO_OFF'
[13:44:14][I][CYCLE:052]: 6: Cycle ended in 0.9 seconds (with timeout?:  NO)
[13:44:18][I][CYCLE:039]: 1: Cycle start
[13:44:18][D][CYCLE:311]: 2a: Sending settings request (0x02)
[13:44:18][D][WRITE:170]: FC 42 01 30 10 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B 
[13:44:18][D][READ:170]: FC 62 01 30 10 02 00 00 01 01 0F 00 00 00 00 03 94 00 00 00 00 B3 
[13:44:18][D][CYCLE:317]: 2b: Receiving settings response
[13:44:18][D][CYCLE:320]: 3a: Sending room °C request (0x03)
[13:44:18][D][WRITE:170]: FC 42 01 30 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7A 
[13:44:19][D][READ:170]: FC 62 01 30 10 03 00 00 09 00 00 A6 00 00 00 00 00 00 00 00 00 AB 
[13:44:19][D][CYCLE:326]: 3b: Receiving room °C response
[13:44:19][I][STATUS:134]: [received       ]-> [room C°: 19.0, operating: NO , compressor freq: 0.0 Hz]
[13:44:19][I][STATUS:134]: [current        ]-> [room C°: 19.0, operating: NO , compressor freq: 0.0 Hz]
[13:44:19][D][CYCLE:329]: 4a: Sending status request (0x06)
[13:44:19][D][WRITE:170]: FC 42 01 30 10 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 77 
[13:44:19][D][READ:170]: FC 62 01 30 10 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 57 
[13:44:19][D][CYCLE:347]: 4b: Receiving status response
[13:44:19][I][STATUS:134]: [received       ]-> [room C°: 19.0, operating: NO , compressor freq: 0.0 Hz]
[13:44:19][I][STATUS:134]: [current        ]-> [room C°: 19.0, operating: NO , compressor freq: 0.0 Hz]
[13:44:19][D][CYCLE:351]: 5a: Sending power request (0x09)
[13:44:19][D][WRITE:170]: FC 42 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 74 
[13:44:19][D][READ:170]: FC 62 01 30 10 09 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 53 
[13:44:19][D][CYCLE:366]: 5b: Receiving Power/Standby response
[13:44:19][D][text_sensor:064]: 'Stage Sensor': Sending state 'LOW'
[13:44:19][D][text_sensor:064]: 'Sub Mode Sensor': Sending state 'NORMAL'
[13:44:19][D][text_sensor:064]: 'Auto Sub Mode Sensor': Sending state 'AUTO_OFF'
[13:44:19][I][CYCLE:052]: 6: Cycle ended in 0.9 seconds (with timeout?:  NO)

@oscarsan1
Copy link

Hi,
With Heat Pump PEAD power inverter duct system: PEAD.M71-JA2

<style> </style>
Column1.1 Column1.2 IP kWh fcp Power kWh f.comp
[08:52:53][D][READ:170] FC 62 01 30 10 06 00 00 00 00 00 23 03 BD 00 00 00 00 00 00 00 74 0023 03BD 00 35 95,7 0
[08:53:19][D][READ:170] FC 62 01 30 10 06 00 00 00 00 00 23 03 BD 00 00 00 00 00 00 00 74 0023 03BD 00 35 95,7 0
[08:53:45][D][READ:170] FC 62 01 30 10 06 00 00 00 00 00 23 03 BD 00 00 00 00 00 00 00 74 0023 03BD 00 35 95,7 0
[08:54:25][D][READ:170] FC 62 01 30 10 06 00 00 00 01 00 23 03 BD 00 00 00 01 2A 00 00 48 0023 03BD 2A 35 95,7 42
[08:54:50][D][READ:170] FC 62 01 30 10 06 00 00 00 01 00 23 03 BD 00 00 00 01 2A 00 00 48 0023 03BD 2A 35 95,7 42
[08:55:16][D][READ:170] FC 62 01 30 10 06 00 00 00 01 01 7E 03 BD 00 00 00 01 27 00 00 EF 017E 03BD 27 382 95,7 39
[08:55:42][D][READ:170] FC 62 01 30 10 06 00 00 00 01 01 7E 03 BD 00 00 00 01 1C 00 00 FA 017E 03BD 1C 382 95,7 28
[08:56:08][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 3F 03 BD 00 00 00 01 1C 00 00 38 023F 03BD 1C 575 95,7 28
[08:56:34][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 3F 03 BD 00 00 00 01 1C 00 00 38 023F 03BD 1C 575 95,7 28
[08:57:00][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 5D 03 BD 00 00 00 01 1C 00 00 1A 025D 03BD 1C 605 95,7 28
[08:57:26][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 5D 03 BD 00 00 00 01 1C 00 00 1A 025D 03BD 1C 605 95,7 28
[08:57:52][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 64 03 BD 00 00 00 01 1C 00 00 13 0264 03BD 1C 612 95,7 28
[08:58:18][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 64 03 BD 00 00 00 01 1E 00 00 11 0264 03BD 1E 612 95,7 30
[08:58:44][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 64 03 BD 00 00 00 01 1E 00 00 11 0264 03BD 1E 612 95,7 30
[08:59:10][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 7B 03 BE 00 00 00 01 1E 00 00 F9 027B 03BE 1E 635 95,8 30
[08:59:36][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 7B 03 BE 00 00 00 01 20 00 00 F7 027B 03BE 20 635 95,8 32
[09:00:02][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 7F 03 BE 00 00 00 01 20 00 00 F3 027F 03BE 20 639 95,8 32
[09:00:28][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 7F 03 BE 00 00 00 01 22 00 00 F1 027F 03BE 22 639 95,8 34
[09:00:54][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 8F 03 BE 00 00 00 01 22 00 00 E1 028F 03BE 22 655 95,8 34
[09:01:20][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 8F 03 BE 00 00 00 01 23 00 00 E0 028F 03BE 23 655 95,8 35
[09:01:46][D][READ:170] FC 62 01 30 10 06 00 00 00 01 02 8F 03 BE 00 00 00 01 23 00 00 E0 028F 03BE 23 655 95,8 35
[09:02:12][D][READ:170] FC 62 01 30 10 06 00 00 00 01 03 0C 03 BE 00 00 00 01 23 00 00 62 030C 03BE 23 780 95,8 35
[09:02:38][D][READ:170] FC 62 01 30 10 06 00 00 00 01 03 0C 03 BE 00 00 00 01 25 00 00 60 030C 03BE 25 780 95,8 37
[09:03:04][D][READ:170] FC 62 01 30 10 06 00 00 00 01 03 89 03 BE 00 00 00 01 25 00 00 E3 0389 03BE 25 905 95,8 37
[09:03:30][D][READ:170] FC 62 01 30 10 06 00 00 00 01 03 89 03 BE 00 00 00 01 27 00 00 E1 0389 03BE 27 905 95,8 39
[09:03:56][D][READ:170] FC 62 01 30 10 06 00 00 00 01 03 89 03 BE 00 00 00 01 27 00 00 E1 0389 03BE 27 905 95,8 39
[09:04:21][D][READ:170] FC 62 01 30 10 06 00 00 00 01 03 89 03 BE 00 00 00 01 29 00 00 DF 0389 03BE 29 905 95,8 41
[09:04:47][D][READ:170] FC 62 01 30 10 06 00 00 00 01 03 89 03 BE 00 00 00 01 29 00 00 DF 0389 03BE 29 905 95,8 41
[09:05:13][D][READ:170] FC 62 01 30 10 06 00 00 00 01 03 89 03 BE 00 00 00 01 29 00 00 DF 0389 03BE 29 905 95,8 41
[09:05:39][D][READ:170] FC 62 01 30 10 06 00 00 00 01 03 89 03 BE 00 00 00 01 2A 00 00 DE 0389 03BE 2A 905 95,8 42
[09:06:05][D][READ:170] FC 62 01 30 10 06 00 00 00 01 03 B3 03 BF 00 00 00 01 2A 00 00 B3 03B3 03BF 2A 947 95,9 42
[09:06:31][D][READ:170] FC 62 01 30 10 06 00 00 00 01 03 B3 03 BF 00 00 00 01 2C 00 00 B1 03B3 03BF 2C 947 95,9 44
[09:06:57][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 6C 03 BF 00 00 00 01 2C 00 00 F7 046C 03BF 2C 1132 95,9 44
[09:07:23][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 6C 03 BF 00 00 00 01 2E 00 00 F5 046C 03BF 2E 1132 95,9 46
[09:07:49][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 6C 03 BF 00 00 00 01 2E 00 00 F5 046C 03BF 2E 1132 95,9 46
[09:08:15][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 79 03 BF 00 00 00 01 2E 00 00 E8 0479 03BF 2E 1145 95,9 46
[09:08:41][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 79 03 BF 00 00 00 01 30 00 00 E6 0479 03BF 30 1145 95,9 48
[09:09:07][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 79 03 BF 00 00 00 01 30 00 00 E6 0479 03BF 30 1145 95,9 48
[09:09:33][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 79 03 BF 00 00 00 01 30 00 00 E6 0479 03BF 30 1145 95,9 48
[09:09:59][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 79 03 BF 00 00 00 01 30 00 00 E6 0479 03BF 30 1145 95,9 48
[09:10:25][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 79 03 BF 00 00 00 01 31 00 00 E5 0479 03BF 31 1145 95,9 49
[09:10:51][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 79 03 BF 00 00 00 01 31 00 00 E5 0479 03BF 31 1145 95,9 49
[09:11:17][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 79 03 BF 00 00 00 01 31 00 00 E5 0479 03BF 31 1145 95,9 49
[09:11:43][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 79 03 BF 00 00 00 01 32 00 00 E4 0479 03BF 32 1145 95,9 50
[09:12:09][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 E2 03 C0 00 00 00 01 32 00 00 7A 04E2 03C0 32 1250 96 50
[09:12:35][D][READ:170] FC 62 01 30 10 06 00 00 00 01 04 E2 03 C0 00 00 00 01 32 00 00 7A 04E2 03C0 32 1250 96 50
[09:13:01][D][READ:170] FC 62 01 30 10 06 00 00 00 01 05 4B 03 C0 00 00 00 01 32 00 00 10 054B 03C0 32 1355 96 50
[09:13:27][D][READ:170] FC 62 01 30 10 06 00 00 00 01 05 4B 03 C0 00 00 00 01 33 00 00 0F 054B 03C0 33 1355 96 51
[09:13:52][D][READ:170] FC 62 01 30 10 06 00 00 00 01 05 4B 03 C0 00 00 00 01 33 00 00 0F 054B 03C0 33 1355 96 51
[09:14:18][D][READ:170] FC 62 01 30 10 06 00 00 00 01 05 4B 03 C0 00 00 00 01 33 00 00 0F 054B 03C0 33 1355 96 51
[09:14:44][D][READ:170] FC 62 01 30 10 06 00 00 00 01 05 4B 03 C0 00 00 00 01 35 00 00 0D 054B 03C0 35 1355 96 53
[09:15:10][D][READ:170] FC 62 01 30 10 06 00 00 00 01 05 4B 03 C0 00 00 00 01 35 00 00 0D 054B 03C0 35 1355 96 53
[09:15:36][D][READ:170] FC 62 01 30 10 06 00 00 00 01 05 4B 03 C0 00 00 00 01 36 00 00 0C 054B 03C0 36 1355 96 54
[09:16:02][D][READ:170] FC 62 01 30 10 06 00 00 00 01 05 4B 03 C1 00 00 00 01 36 00 00 0B 054B 03C1 36 1355 96,1 54
[09:16:28][D][READ:170] FC 62 01 30 10 06 00 00 00 01 05 4B 03 C1 00 00 00 01 37 00 00 0A 054B 03C1 37 1355 96,1 55
[09:16:54][D][READ:170] FC 62 01 30 10 06 00 00 00 01 05 AF 03 C1 00 00 00 01 37 00 00 A6 05AF 03C1 37 1455 96,1 55
[09:17:20][D][READ:170] FC 62 01 30 10 06 00 00 00 01 05 AF 03 C1 00 00 00 01 37 00 00 A6 05AF 03C1 37 1455 96,1 55
[09:17:46][D][READ:170] FC 62 01 30 10 06 00 00 00 01 05 AF 03 C1 00 00 00 01 37 00 00 A6 05AF 03C1 37 1455 96,1 55
[09:18:12][D][READ:170] FC 62 01 30 10 06 00 00 00 01 06 27 03 C1 00 00 00 01 37 00 00 2D 0627 03C1 37 1575 96,1 55
[09:18:38][D][READ:170] FC 62 01 30 10 06 00 00 00 01 06 27 03 C1 00 00 00 01 37 00 00 2D 0627 03C1 37 1575 96,1 55
[09:19:04][D][READ:170] FC 62 01 30 10 06 00 00 00 01 06 27 03 C1 00 00 00 01 37 00 00 2D 0627 03C1 37 1575 96,1 55
[09:19:30][D][READ:170] FC 62 01 30 10 06 00 00 00 01 06 27 03 C1 00 00 00 01 37 00 00 2D 0627 03C1 37 1575 96,1 55
[09:19:56][D][READ:170] FC 62 01 30 10 06 00 00 00 01 06 27 03 C2 00 00 00 01 37 00 00 2C 0627 03C2 37 1575 96,2 55
[09:20:22][D][READ:170] FC 62 01 30 10 06 00 00 00 01 06 27 03 C2 00 00 00 01 37 00 00 2C 0627 03C2 37 1575 96,2 55
[09:20:48][D][READ:170] FC 62 01 30 10 06 00 00 00 01 06 27 03 C2 00 00 00 01 37 00 00 2C 0627 03C2 37 1575 96,2 55
[09:21:14][D][READ:170] FC 62 01 30 10 06 00 00 00 01 06 27 03 C2 00 00 00 01 37 00 00 2C 0627 03C2 37 1575 96,2 55
[09:21:40][D][READ:170] FC 62 01 30 10 06 00 00 00 01 06 27 03 C2 00 00 00 01 37 00 00 2C 0627 03C2 37 1575 96,2 55
[09:22:06][D][READ:170] FC 62 01 30 10 06 00 00 00 01 06 27 03 C2 00 00 00 01 37 00 00 2C 0627 03C2 37 1575 96,2 55
[09:22:31][D][READ:170] FC 62 01 30 10 06 00 00 00 01 06 27 03 C2 00 00 00 01 37 00 00 2C 0627 03C2 37 1575 96,2 55
[09:22:57][D][READ:170] FC 62 01 30 10 06 00 00 00 01 06 24 03 C2 00 00 00 01 37 00 00 2F 0624 03C2 37 1572 96,2 55

I've get in byte 14 a number that seems compressor frequency.

imagen

@oscarsan1
Copy link

The power seem good compared to the whole house, but in the end of the graph there is a strange power fall.

imagen

@MarkoPaasila
Copy link

When your kWh counter flips over soon, please capture a new communication log.

It flipped at 6553.5 kWh. Here output:

[21:55:42][D][READ:170]: FC 62 01 30 10 09 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 52 
[21:55:44][D][READ:170]: FC 62 01 30 10 02 00 00 01 01 1A 00 03 00 00 81 AB 46 00 00 00 CA 
[21:55:44][D][READ:170]: FC 62 01 30 10 03 00 00 0B 00 7C AA AA FE 42 00 1A 60 47 00 00 7E 
[21:55:45][D][READ:170]: FC 62 01 30 10 06 00 00 00 01 02 D1 05 C1 00 00 42 00 00 00 00 7B 
[21:55:45][D][READ:170]: FC 62 01 30 10 09 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 52 

Is this too short?

@miipekk-ihme
Copy link
Collaborator Author

It flipped at 6553.5 kWh. Here output:

[21:55:45][D][READ:170]: FC 62 01 30 10 06 00 00 00 01 02 D1 05 C1 00 00 42 00 00 00 00 7B 

Thank you very much for that. Unfortunately it looks like the kWh counter does not extend to any new bytes, so the counter size seems to be restricted to 2 bytes with maximum value of 6553.5 as you have observed.

                0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15
FC 62 01 30 10 06 00 00 00 01 02 D1 05 C1 00 00 42 00 00 00 00 7B
                           OP IP IP EU EU       ??
OP = operating status (1 = compressor running, 0 = standby)
IP = Current input power in Watts (16-bit decimal)
EU = energy usage (used energy in kWh = value/10)

I will check if it would be possible to change to value type so that it would continue to increase in home assistant when the raw value flips over.

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

Successfully merging this pull request may close these issues.

7 participants