-
Notifications
You must be signed in to change notification settings - Fork 230
Description
Describe the bug
First of all, thank you for this great project. It was exactly what I was looking for. I am trying to control a fut035w+ cct led controller with a fut092 remote, which works alright.
The sniffer shows the remote messages (after switching to the mid listening channel) but the type and some commands, such as color temperature, are not decoded properly. They just show up as "button_id: 3". Am I doing something wrong or is there no way to distinguish between these remote types? If that is not possible, I would like some sort of override setting to manually set the type.
If you can point me in a rough direction, I am willing to implement and try some code changes myself.
Steps to reproduce
- Rf24 Listen Channel: MID in settings
- Press "on" on the remote
- Press on the color temperature select
- Press on the saturation select
- See captured events below
Expected behavior
- Device type should show as fut092, if possible
- button_id 3 should be decoded as color temperature (0 warmest, 100 coolest)
- button_id 4 should be decoded as saturation (0 to 100)
- The state/color mode should be updated accordingly
All other buttons seem to work correctly.
Setup information
Firmware version
1.13.0-2-g0a9ab66
Output of http://milight-hub.local/about
{
"firmware": "milight-hub",
"version": "1.13.0-2-g0a9ab66",
"ip_address": "192.168.178.150",
"reset_reason": "External System",
"variant": "d1_mini",
"free_heap": 16096,
"arduino_version": "3.1.2",
"free_stack": 1168,
"flash_used": 3765,
"flash_total": 957314,
"flash_pct_free": 99,
"mqtt": {
"configured": true,
"connected": true,
"status": "Connected"
},
"queue_stats": {
"length": 0,
"dropped_packets": 0
}
}
Output of http://milight-hub.local/settings
{
"admin_username": "",
"admin_password": "",
"ce_pin": 4,
"csn_pin": 15,
"reset_pin": 0,
"led_pin": -2,
"radio_interface_type": "nRF24",
"packet_repeats": 50,
"http_repeat_factor": 1,
"auto_restart_period": 0,
"mqtt_server": "homeassistant:1883",
"mqtt_username": "mqtt-milight",
"mqtt_password": "***",
"mqtt_topic_pattern": "milight/commands/:device_id/:device_type/:group_id",
"mqtt_update_topic_pattern": "",
"mqtt_state_topic_pattern": "milight/state/:device_id/:device_type/:group_id",
"mqtt_client_status_topic": "milight/client_status",
"simple_mqtt_client_status": true,
"discovery_port": 48899,
"listen_repeats": 3,
"state_flush_interval": 20000,
"mqtt_state_rate_limit": 500,
"mqtt_debounce_delay": 500,
"mqtt_retain": true,
"packet_repeat_throttle_sensitivity": 0,
"packet_repeat_throttle_threshold": 200,
"packet_repeat_minimum": 3,
"enable_automatic_mode_switching": false,
"led_mode_wifi_config": "Fast toggle",
"led_mode_wifi_failed": "On",
"led_mode_operating": "Slow blip",
"led_mode_packet": "Flicker",
"led_mode_packet_count": 3,
"hostname": "milight-hub",
"rf24_power_level": "HIGH",
"rf24_listen_channel": "MID",
"wifi_static_ip": "",
"wifi_static_ip_gateway": "",
"wifi_static_ip_netmask": "",
"packet_repeats_per_loop": 10,
"home_assistant_discovery_prefix": "homeassistant/",
"wifi_mode": "g",
"default_transition_period": 500,
"rf24_channels": [
"MID"
],
"device_ids": [],
"gateway_configs": [],
"group_state_fields": [
"state",
"brightness",
"computed_color",
"mode",
"color_temp",
"color_mode"
]
}
Additional context
Captured events:
On press:
Device ID: 44919
Group ID: 0
Remote Type: fut089
Packet: 02 A5 FE 4D D2 A4 00 91 C1
State:
{
"state": "ON",
"color": {
"r": 255,
"g": 0,
"b": 157
}
}
Command:
state: "ON"
Color temperature:
Device ID: 44919
Group ID: 0
Remote Type: fut089
Packet: 56 51 9A F9 38 43 95 F5 2F
State:
{
"state": "ON",
"color": {
"r": 255,
"g": 0,
"b": 157
}
}
Command:
button_id: 3
argument: 75
Saturation:
Device ID: 44919
Group ID: 0
Remote Type: fut089
Packet: F2 B5 0E 7D 9D 9B 2B 61 FE
State:
{
"state": "ON",
"color": {
"r": 255,
"g": 0,
"b": 157
}
}
Command:
button_id: 4
argument: 47