google / python-temescal

Python control for LG speaker systems
Apache License 2.0
22 stars 17 forks source link

Add a option to "SETTING_VIEW_INFO": "Night Time" #12

Open cdytoby opened 2 years ago

cdytoby commented 2 years ago

Night Mode and Night Time are not the same thing. My Soundbar SP9YA doesn't have Night Mode, but it has Night Time.

Example json from getting the SETTING_VIEW_INFO:

{
"result": "ok",
"cmd": "notibyget",
"msg": "SETTING_VIEW_INFO",
"data": {
"i_av_sync": 0,
"i_center_min": -6,
"b_auto_power": true,
"b_tv_remote": true,
"b_night_time": false,
"b_enable_dialog": false,
"b_drc": false,
"b_auto_vol": false,
"b_soundbarmode": false,
"i_dialog_max": 6,
"b_rear": false,
"b_support_diag": true,
"i_woofer_level": 9,
"i_side_max": 6,
"b_set_device_name": false,
"b_neuralx": false,
"b_support_avsmrm": true,
"b_avsmrm_status": false,
"i_center_max": 6,
"i_top_min": -6,
"b_wow_connect": false,
"s_ipv4_addr": "[ip address]",
"b_nighttime_enable": true,
"i_woofer_min": -15,
"i_woofer_max": 6,
"i_dialog_level": 0,
"i_rear_level": 6,
"i_rear_min": -6,
"i_rear_max": 6,
"i_top_level": 6,
"i_top_max": 6,
"i_center_level": 7,
"i_side_level": 6,
"i_side_min": -6,
"i_dialog_min": 0,
"i_curr_eq": 0,
"i_calibration_status": 0,
"s_user_name": "[user name]",
"s_ipv6_addr": "[ip address]"
}
}

Packet to set Night Time true: (works on my machine and SP9YA)

{"cmd": "set", "data": {"b_night_time": True}, "msg": "SETTING_VIEW_INFO"}