wez / govee2mqtt

Govee2MQTT: Connect Govee lights and devices to Home Assistant
MIT License
330 stars 17 forks source link

H6076 Strip off, but if you turn a segment on, everything turns on #62

Open phoniclynx opened 5 months ago

phoniclynx commented 5 months ago

Govee Device SKU

H6076

Govee2MQTT Version

2024.01.12-108ff95d

Describe the issue

The device is split into 7 segments, if the device is turned off and the light was oricionally set to say a white colour and you turn a single segment on to a different colour: The segment will turn on and to that colour. The rest of the light will also turn on to it's original white colour, instead of off like you would expect if you have only turned a single segment on.

Startup Diagnostics

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
GOVEE_API_KEY=REDACTED
GOVEE_MQTT_HOST=127.0.0.1
GOVEE_EMAIL=REDACTED
GOVEE_PASSWORD=REDACTED
GOVEE_MQTT_PASSWORD=REDACTED
GOVEE_LAN_BROADCAST_ALL=true
GOVEE_MQTT_USER=nat
++ cd /app
++ exec /app/govee serve
[2024-01-13T21:43:34 INFO  govee::commands::serve] Starting service. version 2024.01.12-108ff95d
[2024-01-13T21:43:34 INFO  govee::commands::serve] Querying platform API for device list
[2024-01-13T21:43:36 INFO  govee::commands::serve] Querying undocumented API for device + room list
[2024-01-13T21:43:40 INFO  govee::service::iot] Connected to IoT: CONNACK code 0: Connection Accepted.
[2024-01-13T21:43:40 INFO  govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted.
[2024-01-13T21:43:40 INFO  govee::commands::serve] Starting LAN discovery
[2024-01-13T21:43:40 INFO  govee::commands::serve] Waiting 10 seconds for LAN API discovery
[2024-01-13T21:43:50 INFO  govee::commands::serve] Devices returned from Govee's APIs
[2024-01-13T21:43:50 INFO  govee::commands::serve] Kitchen Bench (0C:2B:D4:AD:FC:C7:29:22 H61A0)
[2024-01-13T21:43:50 INFO  govee::commands::serve]   LAN API: ip=192.168.20.51
[2024-01-13T21:43:50 INFO  govee::commands::serve]   Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2024-01-13T21:43:50 INFO  govee::commands::serve]                 color_temp=Some((2000, 9000)) segment_rgb=Some(0..18)
[2024-01-13T21:43:50 INFO  govee::commands::serve]   Undoc: room=Some("Kitchen") supports_iot=true ble_only=false
[2024-01-13T21:43:50 INFO  govee::commands::serve]   Quirk { sku: "H61A0", icon: "mdi:led-strip-variant", supports_rgb: true, supports_brightness: true, color_temp_range: Some((2000, 9000)), avoid_platform_api: false, ble_only: false, lan_api_capable: true, device_type: Light, platform_temperature_sensor_units: None, platform_humidity_sensor_units: None, iot_api_supported: true }
[2024-01-13T21:43:50 INFO  govee::commands::serve] 
[2024-01-13T21:43:50 INFO  govee::commands::serve] TV Backlight (1E:49:C8:37:36:39:3E:55 H605C)
[2024-01-13T21:43:50 INFO  govee::commands::serve]   Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2024-01-13T21:43:50 INFO  govee::commands::serve]                 color_temp=Some((2000, 9000)) segment_rgb=Some(0..15)
[2024-01-13T21:43:50 INFO  govee::commands::serve]   Undoc: room=Some("Living Room") supports_iot=true ble_only=false
[2024-01-13T21:43:50 INFO  govee::commands::serve] 
[2024-01-13T21:43:50 INFO  govee::commands::serve] Floor Lamp Left (7C:9F:C6:35:34:35:26:50 H6076)
[2024-01-13T21:43:50 INFO  govee::commands::serve]   LAN API: ip=192.168.21.153
[2024-01-13T21:43:50 INFO  govee::commands::serve]   Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2024-01-13T21:43:50 INFO  govee::commands::serve]                 color_temp=Some((2000, 9000)) segment_rgb=Some(0..7)
[2024-01-13T21:43:50 INFO  govee::commands::serve]   Undoc: room=Some("Living Room") supports_iot=true ble_only=false
[2024-01-13T21:43:50 INFO  govee::commands::serve]   Quirk { sku: "H6076", icon: "mdi:floor-lamp", supports_rgb: true, supports_brightness: true, color_temp_range: Some((2000, 9000)), avoid_platform_api: false, ble_only: false, lan_api_capable: true, device_type: Light, platform_temperature_sensor_units: None, platform_humidity_sensor_units: None, iot_api_supported: true }
[2024-01-13T21:43:50 INFO  govee::commands::serve] 
[2024-01-13T21:43:50 INFO  govee::commands::serve] Floor Lamp Right (8C:77:D0:36:35:30:63:3E H6076)
[2024-01-13T21:43:50 INFO  govee::commands::serve]   LAN API: ip=192.168.21.188
[2024-01-13T21:43:50 INFO  govee::commands::serve]   Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2024-01-13T21:43:50 INFO  govee::commands::serve]                 color_temp=Some((2000, 9000)) segment_rgb=Some(0..7)
[2024-01-13T21:43:50 INFO  govee::commands::serve]   Undoc: room=Some("Living Room") supports_iot=true ble_only=false
[2024-01-13T21:43:50 INFO  govee::commands::serve]   Quirk { sku: "H6076", icon: "mdi:floor-lamp", supports_rgb: true, supports_brightness: true, color_temp_range: Some((2000, 9000)), avoid_platform_api: false, ble_only: false, lan_api_capable: true, device_type: Light, platform_temperature_sensor_units: None, platform_humidity_sensor_units: None, iot_api_supported: true }
[2024-01-13T21:43:50 INFO  govee::commands::serve] 
[2024-01-13T21:43:50 INFO  govee::service::http] http server addr is 0.0.0.0:8056
[2024-01-13T21:44:04 INFO  govee::service::hass] Wait 3.6s for hass to settle on 72 entity configs
[2024-01-13T21:44:08 INFO  govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted.
[2024-01-13T21:44:10 INFO  govee::service::state] requesting update via Platform API TV Backlight (1E:49:C8:37:36:39:3E:55 H605C) None
[2024-01-13T21:44:12 WARN  govee::hass_mqtt::switch] CapabilitySwitch::notify_state: Do something with DeviceCapabilityState {
    kind: Toggle,
    instance: "gradientToggle",
    state: Object {
        "value": String(""),
    },
}
[2024-01-13T21:44:12 WARN  govee::hass_mqtt::switch] CapabilitySwitch::notify_state: Do something with DeviceCapabilityState {
    kind: Toggle,
    instance: "dreamViewToggle",
    state: Object {
        "value": String(""),
    },
}

Additional Logs

No response

Home Assistant Logs

No response

Anything else?

No response

wez commented 5 months ago

I think that is just how that particular device works; govee2mqtt is telling it to turn the segment on, but the device turns on the whole strip. If you want just a single segment to be fully lit, then I'd recommend that you explicitly set the parameters for the other segments as part of a HASS script or scene.

See the https://github.com/wez/govee2mqtt/blob/main/docs/FAQ.md#why-cant-i-turn-off-a-segment for more information about the limitations of controlling segments on Govee devices.