-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
From the discussion on https://community.home-assistant.io/t/esphome-stability-too-much-breaking-changes-compared-to-tasmota/959500/20
some of the functionalities use private api and they should use public one, stable:
CustomAPIDevice instead of manually constructing Protobuf message
Bad - private usage:
api::HomeassistantServiceResponse resp;
resp.service = service;
resp.data.push_back(...);
send_homeassistant_service_call(resp);
Good - public API usage:
// This is stable public API
call_homeassistant_service("light.turn_on", {
{"entity_id", "light.my_light"},
{"brightness", "127"},
});
fire_homeassistant_event("esphome.something_happened", {
{"my_value", "500"},
});
CustomApiDevice:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels