Please Help. I can’t seem to make my Broadlink devices work with the new format. I get the following error:
voluptuous.error.MultipleInvalid: not a valid value @ data['packet'][0]
Previous code:
south_patio_shade_down:
sequence:
- service: switch.broadlink_send_packet_192_168_1_55
data:
packet:
- "sgSEAxcMCxkLGRcMGAwXDRcMGAwXDQsZFwwMGBcNCxgMGAwYCxkLGAwYCxkXDQsYDBgLGRcNCxgMGAsZFwABTZ0yDBgMGBcMGAwXDQsYDBkWDQwYCxkXDBcNCxgMGBgMFw0XDBgMFw0XDQsYFw0LGRcMDBgLGQsZCxgMGAsZCxkXDAwYCxkLGBgMCxkMGAsYGAABS54yCxgMGBgMFw0XDAwYDBgXDQsYDBgXDRcNCxgMGBcNFwwYDBcNFwwYDAwYFwwMGBcNDBgLGAwYDBgLGQsYDBgYDAsZCxgMGBcNCxkLGAwYFwABTp4yCxkLGBgMFw0XDAwYCxkXDQsYDBgXDRcMDBgLGRcMGAwYDBcNFwwYDAsZFw0LGBgMCxkLGAwYDBgLGQsYDBgXDQsZCxgMGBcNCxkLGAwYFwABTJ0yDBgMGBcNFwwYDAsZCxkXDQsYCxkXDBgMDBgLGBgMGAwXDRcMFw0XDQsZFwwMGBcNCxgMGAwYCxkLGAwYCxkXDQsYDBgMGBcMDBgMGAsZFwABTJ4yDBgMGBcMGAwXDQsYDBgYDAwYCxgYDBcNCxkLGBgMFw0XDBgMFw0XDAwYGAwLGRcMDBgLGQsZCxgMGAwYCxgYDAwYDBgLGRcMDBgMGAsYGAABS54yDBgLGBgMFw0XDAwYDBgXDQsYDBgYDBcNCxgMGBcNFwwYDBcNFwwYDAwYFw0LGBcNDBgLGQsYDBgMGAsZCxgXDQwYCxkLGBcNCxkLGAwYFwABZZ4yCxkLGBcNFw0XDAwYDBgXDQsYDBgXDRcMDBkLGBcMGAwYDBcNFwwYDAsZFwwMGBgMCxgMGAwYDBgLGQsYDBgXDQsZCxgMGBcNFwwYDBcNCwABWJ0yDBgLGRcNFwwYDAsZCxkXDAsZCxkXDBgMCxk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DBgYDBcNCxgMGBcNFwwYDBcNFwwYDAwYFw0LGBcNDBgLGQsYDBgMGAsZCxgXDQwYCxkLGBcNCxkLGAwYFwABZZ4yCxkLGBcNFw0XDAwYDBgXDQsYDBgXDRcMDBkLGBcMGAwYDBcNFwwYDAsZFwwMGBgMCxgMGAwYDBgLGQsYDBgXDQsZCxgMGBcNFwwYDBcNCwABWJ0yDBgLGRcNFwwYDAsZCxkXDAsZCxkXDBgMCxkLGRcMGAwXDRcMGAwXDQsYGAwMGBcMDBgMGAwYCxgMGAwYCxkXDQsYCxkLGRcMGAwXDRcMDAABWJ4yDBgLGRcMGAwXDQsYDBgXDQsYDBgYDBcNCxgMGBcNFw0XDBgMFw0XDAwYFw0LGBgMDBgLGQsYDBgLGQsZCxgYDAwYCxkLGBgMFw0XDRcMCwABWJ0zCxgMGBgMFw0XDAwYDBgXDAwYDBgXDRcMDBgMGBcMGAwYDBcMGAwYDAsZFwwMGBcNCxgMGAwYDBgLGQsYDBgXDQsZCxgMGBcNFwwYDBcNCwAF3AAAAAA"
Full error looks like this:
Thu Apr 25 2019 13:50:28 GMT-0700 (Mountain Standard Time)
Error executing service <ServiceCall script.south_patio_shade_down (c:b1e9d20791254898b18311c6719dea17)>
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1147, in _safe_execute
await self._execute_service(handler, service_call)
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1160, in _execute_service
await handler.func(service_call)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/script/__init__.py", line 114, in service_handler
context=service.context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/script/__init__.py", line 172, in async_turn_on
kwargs.get(ATTR_VARIABLES), context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 131, in async_run
await self._handle_action(action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 210, in _handle_action
action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 299, in _async_call_service
context=context
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 89, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1118, in async_call
processed_data = handler.schema(service_data)
File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 267, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict
return base_validate(path, iteritems(data), out)
File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: not a valid value @ data['packet'][0]