J3n50m4t / Home-Assistant-DreamScreen-Service

Home Assistant Service for sending commands to a Wifi enabled DreamScreen
MIT License
31 stars 15 forks source link

How to add device groups? #35

Open incarvr6 opened 4 years ago

incarvr6 commented 4 years ago

I managed to set up and control main DS module on its own. But can't find a way how to set it up to work with group DS and two sidekicks. Device discovery is not working and i could't find a way how to add group with several IP or devices.

DS statuss window shows correctly my group name, state, inputs etc.. but controls only DS, sidekicks are not reacting. config as below dose not work for sidekicks `devices:

Is it possible to do it?

incarvr6 commented 4 years ago

just pulled log and i can see that group is recognised but no signes of sidekicks..

01:03:14 DEBUG (MainThread) [pydreamscreen.devices] Listening... 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] Received message=b'\xfc\x92\xff\x01\nDreamScreen HD\x00\x00LivingroomScreen\x01\x03I\x0f\xff\xff\xff\xff\xffg\x00\xff\xd0\xd0\x1e5SS\x07\x04\x00\x00\x02\x01\x01\x01\x02\x00\x00\x00\x01\x04\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x01HDMI 1 HDMI 2 HDMI 3 \x01\x01\x01\x14\x00\x00\x02\x01\x06\x01\x07\x00\x00\x03\x01\x00\x00\x01f' from ip=192.168.86.9 port=[8888] 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] Processing state from ip=192.168.86.9 port=[8888] 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] Update: {'ip': '192.168.86.9', 'device_type': 'DreamScreenHD', 'update_time': datetime.datetime(2020, 6, 10, 1, 3, 14, 40409), 'recent_state_message': b'DreamScreen HD\x00\x00LivingroomScreen\x01\x03I\x0f\xff\xff\xff\xff\xffg\x00\xff\xd0\xd0\x1e5SS\x07\x04\x00\x00\x02\x01\x01\x01\x02\x00\x00\x00\x01\x04\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x01HDMI 1 HDMI 2 HDMI 3 \x01\x01\x01\x14\x00\x00\x02\x01\x06\x01\x07\x00\x00\x03\x01\x00\x00\x01f', 'name': 'DreamScreen HD', 'group_name': 'LivingroomScreen', 'group_number': 1, 'mode': 3, 'brightness': 73, 'ambient_color': b'\xffg\x00', 'ambient_scene': 1} 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] Successfully parsed state message 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _ip to 192.168.86.9 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _update_time to 2020-06-10 01:03:14.040409 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _recent_state_message to b'DreamScreen HD\x00\x00LivingroomScreen\x01\x03I\x0f\xff\xff\xff\xff\xffg\x00\xff\xd0\xd0\x1e5SS\x07\x04\x00\x00\x02\x01\x01\x01\x02\x00\x00\x00\x01\x04\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x01HDMI 1 HDMI 2 HDMI 3 \x01\x01\x01\x14\x00\x00\x02\x01\x06\x01\x07\x00\x00\x03\x01\x00\x00\x01f' 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _name to DreamScreen HD 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _group_name to LivingroomScreen 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _group_number to 1 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _mode to 3 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _brightness to 73 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _ambient_color to b'\xffg\x00' 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _ambient_scene to 1 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _hdmi_input to 1 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _hdmi_input_1_name to HDMI 1 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _hdmi_input_2_name to HDMI 2 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _hdmi_input_3_name to HDMI 3 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _hdmi_active_channels to 2 2020-06-10 01:03:14 DEBUG (MainThread) [pydreamscreen.devices] setting _hdr_tone_remapping to 0`