sinricpro / esp8266-esp32-sdk

Library for https://sinric.pro - simple way to connect your device to Alexa, Google Home, SmartThings and cloud
https://sinric.pro
227 stars 121 forks source link

V3.0.0 breaking change: Missing member SinricProContactSensor onPowerState #341

Closed lilbuzz closed 9 months ago

lilbuzz commented 9 months ago

I receive the following error when I attempt to compile using v3.0.0 of the library in Arduino sketch: Compilation error: 'using SinricProContactsensor = class SINRICPRO_3_0_0::SinricProContactsensor' {aka 'class SINRICPRO_3_0_0::SinricProContactsensor'} has no member named 'onPowerState'

sivar2311 commented 9 months ago

Hi @lilbuzz !

The server and the app no longer support onPowerState for sensors. For this reason, version 3.0.0 was released, which is not backwards compatible - see Changelog: "BREAKING CHANGE: Remove PowerStateController from Air Quality, Contact, Motion and Temperature sensor." and the examples for the sensors (e.g. MotionSensor.ino).

lilbuzz commented 9 months ago

Thank you for this clarification. I did look at the changelog, but it wasn't obvious to me that onPowerState was part of PowerStateController.