Update screens to use new MQTT format.

This commit is contained in:
Pim van Pelt
2018-01-02 00:21:38 +01:00
parent 9dbf9be428
commit 71410fee91
2 changed files with 5 additions and 4 deletions

View File

@ -19,7 +19,7 @@
"h": 56,
"label": "On",
"type": 1,
"mqtt": [ "/s/cmnd/5C:CF:7F:20:29:6E/Power On" ]
"mqtt": [ {"topic": "/s/cmnd/5C:CF:7F:20:29:6E/Power", "message": "On"} ]
},
{
"name": "heli_led_off",
@ -29,7 +29,7 @@
"h": 56,
"label": "Off",
"type": 1,
"mqtt": [ "/s/cmnd/5C:CF:7F:20:29:6E/Power Off" ]
"mqtt": [ {"topic": "/s/cmnd/5C:CF:7F:20:29:6E/Power", "message": "Off"} ]
},
{
"name": "heli_led_toggle",
@ -39,7 +39,7 @@
"h": 56,
"label": "Toggle",
"type": 1,
"mqtt": [ "/s/cmnd/5C:CF:7F:20:29:6E/Power Toggle" ]
"mqtt": [ {"topic": "/s/cmnd/5C:CF:7F:20:29:6E/Power", "message": "Toggle"} ]
}
]
}

View File

@ -18,7 +18,8 @@
"w": 48,
"h": 48,
"label": "Two",
"type": 0
"type": 1,
"mqtt": [ {"topic": "esp32_XXXXXX/rpc/Button.Touch", "message": {"args": {"idx":0}}} ]
}
]
}