diff --git a/blinds.yaml b/blinds.yaml index ed9cbc0..5f5069b 100644 --- a/blinds.yaml +++ b/blinds.yaml @@ -20,6 +20,11 @@ esp32: packages: device_base: !include templates/esp32-poe.yaml + # Also act as a BT proxy due to convenient location. + #btproxy: !include templates/btproxy.yaml + # Allow HA to use our proxy. + api: !include templates/api.yaml + external_components: # Path is relative to the main YAML file, not this device_base template! - source: components diff --git a/components/somfy/somfy.cpp b/components/somfy/somfy.cpp index 5859085..d21195e 100644 --- a/components/somfy/somfy.cpp +++ b/components/somfy/somfy.cpp @@ -30,10 +30,14 @@ void SomfyRTSCover::dump_config() { cover::CoverTraits SomfyRTSCover::get_traits() { auto traits = cover::CoverTraits(); + traits.set_is_assumed_state(true); + traits.set_supports_stop(true); + traits.set_supports_position(false); traits.set_supports_tilt(false); traits.set_supports_toggle(false); + return traits; } @@ -70,8 +74,9 @@ void SomfyRTSCover::setup() { }, /*qos=*/1 /* (at least once) */); } else { + this->rolling_code_ = 0; + this->mark_failed("Missing rolling_code"); ESP_LOGE(TAG, "No rolling code in flash, and MQTT client unavailable"); - rolling_code_ = 0; } }