I really don't think this is a sitemap issue. I don't know the language well enough to speak of this but the error I am getting is
[ERROR] [o.u.i.items.ItemUIRegistryImpl:411 ] - Cannot retrieve item 'itm_office_mqtt_motion_switch' for widget org.openhab.model.sitemap.Switch
This makes me think it is an item issue not a sitemap issue. I captured this startup information from the log file:
[DEBUG] [.b.mqtt.internal.MqttActivator:34 ] - MQTT binding has been started.
[DEBUG] [i.internal.GenericItemProvider:334 ] - Start processing binding configuration of Item 'itm_office_mqtt_string (Type=NumberItem, State=Uninitialized)' with 'MqttGenericBindingProvider' reader.
[DEBUG] [b.mqtt.internal.MqttItemConfig:71 ] - Loaded MQTT config for item 'itm_office_mqtt_string' : 1 subscribers, 0 publishers
[DEBUG] [o.i.t.m.i.MqttBrokerConnection:476 ] - Starting message consumer for broker 'officepi' on topic 'office_string'
[DEBUG] [m.internal.MqttEventBusBinding:61 ] - MQTT: Activating event bus binding.
It shows the process for binding the itm_office_mqtt_string Item, but there is no mention of the binding of the itm_office_mqtt_motion_switch Item. Should there be? If so, anyone know why it might not be there?
As I said above, when I comment out the itm_office_mqtt_string Item in the items file, OpenHab refreshes (see below) and allows the itm_office_mqtt_motion_switch Switch Item to function.
[INFO ] [c.internal.ModelRepositoryImpl:97 ] - Refreshing model 'mini.items'
[DEBUG] [i.internal.GenericItemProvider:154 ] - Processing binding configs for items from model 'mini.items'
[DEBUG] [m.i.MqttGenericBindingProvider:73 ] - Removing message consumers for item itm_office_mqtt_string
[DEBUG] [o.i.t.m.i.MqttBrokerConnection:505 ] - Unsubscribing message consumer for topic 'office_string' from broker 'officepi'
[DEBUG] [m.i.MqttGenericBindingProvider:106 ] - Removing message publishers for item itm_office_mqtt_string
[DEBUG] [b.mqtt.internal.MqttItemConfig:71 ] - Loaded MQTT config for item 'itm_office_mqtt_motion_switch' : 1 subscribers, 0 publishers
[DEBUG] [o.i.t.m.i.MqttBrokerConnection:476 ] - Starting message consumer for broker 'officepi' on topic 'office_motion'
[DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model 'mini.items'
The sitemap works when the item can be retrieved, but I don't know why only one item is being retrieved, not both.