esphome-dsckeybus icon indicating copy to clipboard operation
esphome-dsckeybus copied to clipboard

DSCkeybus API call from lambda

Open chreggy opened this issue 1 year ago • 1 comments

Hello,

I tested last year this projet with success but with the last sources, how can I convert this lambda API calls ?

  • lambda: 'static_cast< DSCkeybushome*> (id(dsckeybus).get_component(0))->set_alarm_state("A","",1);'
  • lambda: 'static_cast< DSCkeybushome*> (id(dsckeybus).get_component(0))->set_alarm_state("D","$accessCode",1);'

Best Regards.

chreggy avatar Feb 09 '24 17:02 chreggy

use: lambda: $panelId->set_alarm_state("A","",1); lambda: $panelid->set_alarm_state("D","$accessCode",1);

Dilbert66 avatar Feb 09 '24 17:02 Dilbert66