esphome-dsckeybus
esphome-dsckeybus copied to clipboard
DSCkeybus API call from lambda
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.
use: lambda: $panelId->set_alarm_state("A","",1); lambda: $panelid->set_alarm_state("D","$accessCode",1);