Skip to content

Commit

Permalink
Merge pull request #87 from Arbuzov/1.5.2-release
Browse files Browse the repository at this point in the history
1.5.2 release
  • Loading branch information
Arbuzov committed Nov 3, 2023
2 parents 3aa3be9 + 01ea7aa commit 9305563
Show file tree
Hide file tree
Showing 11 changed files with 272 additions and 468 deletions.
36 changes: 36 additions & 0 deletions DEBUG_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,39 @@ Please join
|d0 07 a9 f0 02 00 6e 6f|Set Profile 2 response||
|d0 07 a9 f0 03 00 5d 5e|Set Profile 3 response||
|d0 07 a9 f0 04 01 d4 e8|Set Profile Guest response||

### Management protocol

Switches managed by command [0x0d, 0x0b, 0x90, 0x0f, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
The nine digit (counted from 0) is the command bitmask

### Notification Protocol assumptions
|Code | Details |
|--------|-----------------------------------------------------|
|00 - 03 | was not changed suspect pilot or device type
|04 | nozzle sensor hot water, milk pot or detached
|05 | General notification bitmask is suspected
| | 0
| | 1
| | 2
| | 3
| | 4
| | 5
| | 6
| | 7
|06 | Ability to use milk pot, maybe
|07 | Service notification bitmask is suspected
| | 0
| | 1
| | 2 - descale
| | 3 - replace water filter
| | 4
| | 5
| | 6
| | 7
|08 | always 0
|09 | 0x00 if device active 0x07 if device is off
|10 | cooking progress stage
|11 | progress bar inside the stage
|12 - 16 | always 0 perhaps for the new features
|17 - 18 | Signature
6 changes: 3 additions & 3 deletions custom_components/delonghi_primadonna/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@ class DelongiPrimadonnaEnabledSensor(DelonghiDeviceEntity, BinarySensorEntity):
@property
def icon(self) -> str:
"""Return the icon of the device."""
if self.device.is_on:
if self.device.switches.is_on:
return 'mdi:coffee-maker-check'
if self.device.connected:
return 'mdi:coffee-maker-check-outline'
return 'mdi:coffee-maker-outline'

@property
def native_value(self):
return self.device.is_on
return self.device.switches.is_on

@property
def is_on(self) -> bool:
return self.device.is_on
return self.device.switches.is_on


class DelongiPrimadonnaDescaleSensor(DelonghiDeviceEntity, BinarySensorEntity):
Expand Down
Loading

0 comments on commit 9305563

Please sign in to comment.