Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

G2M not setting correct scene #353

Open
cmdshft opened this issue Jan 1, 2025 · 5 comments
Open

G2M not setting correct scene #353

cmdshft opened this issue Jan 1, 2025 · 5 comments

Comments

@cmdshft
Copy link

cmdshft commented Jan 1, 2025

Govee Device SKU

H6063

Govee2MQTT Version

2024.12.31-39564aea

Describe the issue

When setting to example scene "Dreamlike", the device illuminates with the wrong scene colors and effects. This exact incorrect pattern is displayed no matter what scene is selected EXCEPT for the Evangelion themed scenes. This issue was not happening prior to 2024.12.31-39564aea.

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=core-mosquitto
GOVEE_TEMPERATURE_SCALE=C
GOVEE_EMAIL=REDACTED
GOVEE_PASSWORD=REDACTED
GOVEE_MQTT_PASSWORD=REDACTED
GOVEE_MQTT_USER=addons
GOVEE_MQTT_PORT=1883
++ cd /app
++ exec /app/govee serve
[2025-01-01T03:41:14 INFO govee::commands::serve] Starting service. version 2024.12.31-39564aea
[2025-01-01T03:41:14 INFO govee::commands::serve] Querying platform API for device list
[2025-01-01T03:41:14 INFO govee::commands::serve] Querying undocumented API for device + room list
[2025-01-01T03:41:15 INFO govee::service::iot] Connected to IoT: aqm3wd1qlc3dy-ats.iot.us-east-1.amazonaws.com:8883 CONNACK code 0: Connection Accepted.
[2025-01-01T03:41:15 INFO govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted.
[2025-01-01T03:41:15 INFO govee::commands::serve] Starting LAN discovery
[2025-01-01T03:41:15 INFO govee::commands::serve] Waiting 10 seconds for LAN API discovery
[2025-01-01T03:41:25 INFO govee::commands::serve] Devices returned from Govee's APIs
[2025-01-01T03:41:25 INFO govee::commands::serve] Smart Flood Lights (88:F5:C7:34:30:35:56:49 H7060)
[2025-01-01T03:41:25 INFO govee::commands::serve] LAN API: ip=10.0.0.222
[2025-01-01T03:41:25 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2025-01-01T03:41:25 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=Some(0..4)
[2025-01-01T03:41:25 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false
[2025-01-01T03:41:25 INFO govee::commands::serve] Quirk { sku: "H7060", icon: "mdi:light-flood-down", 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, show_as_preset_buttons: None }
[2025-01-01T03:41:25 INFO govee::commands::serve]
[2025-01-01T03:41:25 INFO govee::commands::serve] Mud Room 2 (F5:BC:D4:AD:FC:29:A4:5A H6008)
[2025-01-01T03:41:25 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2025-01-01T03:41:25 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=None
[2025-01-01T03:41:25 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false
[2025-01-01T03:41:25 INFO govee::commands::serve]
[2025-01-01T03:41:25 INFO govee::commands::serve] Eva Light (2F:7C:D0:29:60:89:23:D2 H6063)
[2025-01-01T03:41:25 INFO govee::commands::serve] LAN API: ip=10.0.0.85
[2025-01-01T03:41:25 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2025-01-01T03:41:25 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=None
[2025-01-01T03:41:25 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false
[2025-01-01T03:41:25 INFO govee::commands::serve] Quirk { sku: "H6063", icon: "mdi:light-bulb", 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, show_as_preset_buttons: None }
[2025-01-01T03:41:25 INFO govee::commands::serve]
[2025-01-01T03:41:25 INFO govee::commands::serve] Govee Side Light (39:16:D0:C8:06:46:64:7A H7075)
[2025-01-01T03:41:25 INFO govee::commands::serve] LAN API: ip=10.0.0.145
[2025-01-01T03:41:25 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2025-01-01T03:41:25 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=Some(0..3)
[2025-01-01T03:41:25 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=true
[2025-01-01T03:41:25 INFO govee::commands::serve] Quirk { sku: "H7075", icon: "mdi:light-bulb", 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, show_as_preset_buttons: None }
[2025-01-01T03:41:25 INFO govee::commands::serve]
[2025-01-01T03:41:25 INFO govee::commands::serve] Mud Room 1 (1A:A4:D4:AD:FC:29:A4:42 H6008)
[2025-01-01T03:41:25 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2025-01-01T03:41:25 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=None
[2025-01-01T03:41:25 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false
[2025-01-01T03:41:25 INFO govee::commands::serve]
[2025-01-01T03:41:25 INFO govee::commands::serve] H5075_5B85 (55:40:A4:C1:38:18:5B:85 H5075)
[2025-01-01T03:41:25 INFO govee::commands::serve] Undoc: room=None supports_iot=false ble_only=true
[2025-01-01T03:41:25 WARN govee::commands::serve] Unknown device type. Cannot map to Home Assistant.
[2025-01-01T03:41:25 INFO govee::commands::serve]
[2025-01-01T03:41:25 INFO govee::commands::serve] Backyard Wall Light (35:56:D0:C8:06:46:49:61 H7075)
[2025-01-01T03:41:25 INFO govee::commands::serve] LAN API: ip=10.0.0.126
[2025-01-01T03:41:25 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2025-01-01T03:41:25 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=Some(0..3)
[2025-01-01T03:41:25 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false
[2025-01-01T03:41:25 INFO govee::commands::serve] Quirk { sku: "H7075", icon: "mdi:light-bulb", 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, show_as_preset_buttons: None }
[2025-01-01T03:41:25 INFO govee::commands::serve]
[2025-01-01T03:41:25 INFO govee::commands::serve] H6127_5DC1 (24f784301f8f5dc1 H6127)
[2025-01-01T03:41:25 INFO govee::commands::serve] Undoc: room=None supports_iot=false ble_only=true
[2025-01-01T03:41:25 WARN govee::commands::serve] Unknown device type. Cannot map to Home Assistant.
[2025-01-01T03:41:25 INFO govee::commands::serve]
[2025-01-01T03:41:25 INFO govee::commands::serve] Ceiling Light (0E:8C:D0:C9:07:DD:78:7A H60A1)
[2025-01-01T03:41:25 INFO govee::commands::serve] LAN API: ip=10.0.0.23
[2025-01-01T03:41:25 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2025-01-01T03:41:25 INFO govee::commands::serve] color_temp=Some((2200, 6500)) segment_rgb=Some(0..13)
[2025-01-01T03:41:25 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false
[2025-01-01T03:41:25 INFO govee::commands::serve] Quirk { sku: "H60A1", icon: "mdi:light-bulb", 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, show_as_preset_buttons: None }
[2025-01-01T03:41:25 INFO govee::commands::serve]
[2025-01-01T03:41:25 INFO govee::service::http] http server addr is 0.0.0.0:8056
[2025-01-01T03:41:45 INFO govee::service::state] requesting update via Platform API Mud Room 2 (F5:BC:D4:AD:FC:29:A4:5A H6008) None
[2025-01-01T03:41:45 INFO govee::service::state] requesting update via Platform API Mud Room 1 (1A:A4:D4:AD:FC:29:A4:42 H6008) None
[2025-01-01T03:41:51 INFO govee::service::hass] Wait 560ms for hass to settle on 56 entity configs
[2025-01-01T03:41:52 INFO govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted.

Additional Logs

[2025-01-01T03:40:07 INFO govee::lan_api] sending scene packet ["owABBgI/TQECAWQkAAABAAACAJU=", "owEAAAAAGAABAAAAAcgFAABkZHc=", "owIEGf+CAAD//xX/AP//AWQkAGo=", "owMABgAABAAAAAAAGAABAQAAAbs=", "owTICgAAZGQEGf+CAAD//zj/AMI=", "o////wAAAAAAAAAAAAAAAAAAAFw=", "MwUEgyAAAAAAAAAAAAAAAAAAAJE="] for Dreamlike, code 8323

Home Assistant Logs

No response

Anything else?

No response

@Daverover66
Copy link

If I can just add to this,

Govee Device SKU

H6052 - Aura Lamp
H6079 - Floor Lamp Pro

Govee2MQTT Version

Just updated to 2025.01.01-ae1f0cc1, but also on previous version

Scenes are no longer being applied. Without going into checking every scene, this is the log from 2 attempts:

[2025-01-01T16:13:14 INFO  govee::service::state] Using LAN API to set Floor Lamp Pro 1 (19:94:F6:72:8B:55:8B:81 H6079) brightness
[2025-01-01T16:13:14 INFO  govee::service::state] Using LAN API to set Floor Lamp Pro 1 (19:94:F6:72:8B:55:8B:81 H6079) to scene Afternoon
[2025-01-01T16:13:14 INFO  govee::lan_api] sending scene packet ["owABCQIKAy1QAAADAgJaRwC1FGI=", "owEUy2UDtxQUA8YUBP9eDf/AF/0=", "owKQ/xcg/ikSAJYAAIAAAQEA/9U=", "owMtVQAAAwICWkcAtRQUy2UDt2k=", "owQUFAPGFAT/Xg3/wBeQ/xcg/lA=", "owUpEACWAACAAAEBAP8tAAAAA1g=", "owYCAlpHALUUFMtlA7cUFAPGFMY=", "owcE/14N/8AXkP8XIP4pEgCWAC8=", "o/8AgAABAQH/AAAAAAAAAAAAACI=", "MwUEVxUAAAAAAAAAAAAAAAAAAHA="] for Afternoon, code 5463
[2025-01-01T16:14:58 INFO  govee::service::hass] Command for Kitchen Aura Lamp (01:F2:CB:36:34:39:4E:1C H6052): {"state":"ON","effect":"Sunset"}
[2025-01-01T16:14:58 INFO  govee::service::state] Using LAN API to set Kitchen Aura Lamp (01:F2:CB:36:34:39:4E:1C H6052) to scene Sunset
[2025-01-01T16:14:58 INFO  govee::lan_api] sending scene packet ["owABCwIBEQ4AZAAAAAkM/wAAACs=", "owEBAgMEBQYHCAkKCwz/CAAMDVg=", "owIODxAREhMUFRYXC/9RABgZGh4=", "owMbHB0eHyAhIgH/UAAjGP9mAJQ=", "owQkJSYnKCkqKywtLi8wMTIzNJM=", "owU1Njc4OTo7GP9/ADw9Pj9AQQs=", "owZCQ0RFRkdISUpLTE1OT1BRUvc=", "owdTGP+eAFRVVldYWVpbXF1eX44=", "owhgYWJjZGVmZ2hpamsM/+4AbNo=", "owltbm9wcXJzdHV2dwz//wB4ecs=", "o/96e3x9fn+AgYKDAAAAAAAAAF0=", "MwUELQEAAAAAAAAAAAAAAAAAAB4="] for Sunset, code 301

I have a number of other lights such as H619C RGBIC and H70C2 String Lights and these seem to be applying scenes okay.

@ccle610
Copy link

ccle610 commented Jan 1, 2025

Same with my Cylinder Floor Lamp.
Workaround is setting up a Scene in Govee App and import this iin HA for EVERY DIFFERENT SITUATION . No so Comfortable . . .
[2025-01-01T20:39:26 INFO govee::service::hass] Command for Cylinder Floor Lamp (47:93:C1:33:34:37:25:24 H6078): {"state":"ON","color":{"r":255,"g":133,"b":20},"brightness":40,"effect":"Contorted"}

[2025-01-01T20:39:26 INFO govee::service::state] Using LAN API to set Cylinder Floor Lamp (47:93:C1:33:34:37:25:24 H6078) brightness
[2025-01-01T20:39:26 INFO govee::service::state] Using LAN API to set Cylinder Floor Lamp (47:93:C1:33:34:37:25:24 H6078) to scene Contorted
[2025-01-01T20:39:26 INFO govee::lan_api] sending scene packet ["owA***=", "owEA/", "owIP", "owM***", "//***", "MwUEvhwAAAAAAAAAAAAAAAAAAJA="] for Contorted, code 7358

@wez
Copy link
Owner

wez commented Jan 2, 2025

@AlgoClaw FYI, it seems like either the technique isn't perfect, or some devices don't support it via LAN API.

What I think would be good is to have some persistent state here in govee2mqtt that would allow a user to specify a preferred mechanism for applying scenes.

It would be great if there was some way that we could query a device to tell if it has a scene applied, that way we could verify whether a command took effect, and then update our strategy accordingly.

@AlgoClaw
Copy link

AlgoClaw commented Jan 2, 2025

@wez

I you want to roll back the LAN integration to clear these issues, go for it. I can always pull the LAN-version image by tag.

The more complicated solution would be to whitelist/blacklist models and change the functionality accordingly. Per @Mavrrick 's comment here (egold555/Govee-Reverse-Engineering#11 (comment)), a common denominator seems to be whether the device is a linear string/strip type. And, it may also be an issue of how new the device is.

Models known to work:

  • H61A8 - Outdoor Neon Rope Light
  • H7039 - Outdoor String Lights 2
  • H805A - Outdoor Permanent String Lights
  • H6172 - Outdoor Strip Light
  • H619C - Pro LED Strip Light
  • H70C2 - Christmas Lights

Models known to not work:

  • H6066 - Glide Hexa Pro Light Panels
  • H6063 - Gaming Wall Light
  • H6052 - Aura Lamp
  • H6079 - Floor Lamp Pro
  • H6078 - Cylinder Floor Lamp
  • H60A1 - RGBWW + RGBIC Smart Ceiling Light

wez added a commit that referenced this issue Jan 2, 2025
This reverts commit c0545a8; we'll
revisit this after a bit more investigation.

refs: #354
refs: #353
@wez
Copy link
Owner

wez commented Jan 2, 2025

FWIW, I've had success with these models using the LAN API:

  • H6072 - lyra lamps
  • H61A2 - Neon rope

For now, I've reverted back to preferring to use the cloud API for applying scenes, until we have a better alternative strategy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants