{
    "id": "ui_broadcast",
    "msg_subclass": "hub.scene.changed",
    "changed_by": "hub.scenes.edit",
    "result": {
        "_id": "5c7ff48b7f00002a07a408e3",
        "enabled": true,
        "group_id": null,
        "is_group": false,
        "name": "testRule",
        "syncNotification":false,
        "parent_id": "5c6ec961cc01eb07f86f9dd9",
        "then": [
            {
                "blockOptions": {
                    "method": {
                        "args": {
                            "item": "item",
                            "value": "value"
                        },
                        "name": "setItemValue"
                    }
                },
                "blockType": "then",
                "fields": [
                    {
                        "name": "item",
                        "type": "item",
                        "value": "5c7fea737f00000ab55f2e5d"
                    },
                    {
                        "name": "value",
                        "type": "bool",
                        "value": false
                    }
                ]
            }
        ],
        "when": [
            {
               "blockOptions":{
                  "method":{
                     "args":{  
                        "sunstate":"sunrise",
                        "time":"time"
                     },
                     "name":"isSunState"
                  }
               },
               "blockType":"when",
               "fields":[
                  {
                     "name":"sunrise",
                     "type":"string",
                     "value":"before"
                  },
                  {
                     "name":"time",
                     "type":"hms_interval",
                     "value":"10:30"
                  }
               ]
            }
        ]
    }
}