I am having a little trouble getting incoming MQTT messages with json numbers for a switch (1 = on, 0=off). This works fine if I do it as a Contact but if I do it as a Switch it doesn’t work
When I add a point/item the item shows the switch till I next refresh then just NULL.
All my other switches that use ON/OFF instead of 1/0 work find.
UID: mqtt:topic:2af9203fe9:fc9a2afc97
label: BMS
thingTypeUID: mqtt:topic
configuration: {}
bridgeUID: mqtt:broker:2af9203fe9
location: Garage
channels:
- id: BMSCoolingFans
channelTypeUID: mqtt:switch
label: BMS Cooling Fans
description: ""
configuration:
stateTopic: powerwall/stat/watchmon/StatusFast
transformationPattern: JSONPATH:$.ExpansionOutputRelay2
- id: BMSShuntTrip
channelTypeUID: mqtt:switch
label: BMS Shunt Trip
description: ""
configuration:
stateTopic: powerwall/stat/watchmon/StatusFast
transformationPattern: JSONPATH:$.ExpansionOutputRelay1
Is anyone else experiencing this?