我的歉意。我读到,当一个事件通过自动化或前端触发(即打开一盏灯),将有json消息包含一个填充user_id(在上下文部分)。我的json消息总是包含一个空值(参见下面的示例),无论我如何触发事件(自动化、前端等)。
{“_msgid”:“249 aa0f6。a759c”、“主题”:“”、“有效载荷”:“从”、“数据”:{“entity_id”:“光。"node_id":57,"value_index":0,"value_instance":1,"value_id":"72####","friendly_name ":"Living Room","supported_features":1,"icon":"mdi:灯泡"}," last_updated":"2019-08-20T01:40:18.758789+00:00","context":{" id ":“d4 # # # #”、“parent_id”:空,“user_id”:零},“timeSinceChangedMs”:24270115}}