Skip to content

Wrong State for Samsung #1447

@yaroshd81

Description

@yaroshd81

You have 2 function for return results state AC:

  1. IRAcUtils::resultAcToString
  2. IRAcUtils::decodeToState
    If used 1 function after recived command, we have nice result:
    resultAcToString:Power: On, Mode: 1 (Cool), Temp: 22C, Fan: 4 (Med), Swing: Off, Beep: Off, Clean: Off, Quiet: Off, Powerful: Off, Breeze: Off, Light: Off, Ion: Off
    But if used 2 function, we have bad results, because Mode: 0 (Auto), Temp: 16C, Fan: 0 (Auto) (All parameters have 0, because Temp: 16C = (int)0)
    I fixed problem when analize 1 function with 2:
    ac.setRaw(decode->state, decode->bits / 8);//This code in 1 function where all good working //ac.setRaw(decode->state);//This code in 2 function where not working

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions