Your temp and humidity is indented wrong. Should be
climate:
- platform: smartir
name: Fujitsu
unique_id: pto_fujitsu
device_code: 6285
controller_data:
controller_type: MQTT # for UFO-R11
mqtt_topic: zigbee2mqtt/Universal Remote Control/set # or /command ?
temperature_sensor: sensor.0x00158d0001ddaee4_temperature
humidity_sensor: sensor.0x00158d0001ddaee4_humidity
Also not sure if mqtt_topic should have spaces in it. Below is an example of mine, making note that my mqtt_topic ends in /ir_code_to_send
climate:
- platform: smartir
name: Bedroom Room AC
unique_id: ac_bedroom_zigbee
device_code: 10271
controller_data:
controller_type: MQTT
mqtt_topic: zigbee2mqtt/moes_ufo_r11/set/ir_code_to_send
power_sensor: binary_sensor.0x00158d000ae4f462_contact
power_sensor_restore_state: true
You should also put your custom code in the custom codes folder, not in the
codes - climate
folder otherwise it’ll get deleted next time you update the integration. If it’s not already there, create it under smartir - custom_codes - climate
Here’s the first little bit of my .json file
{
"manufacturer": "Panasonic",
"supportedModels": [
"CS-SA9CKP"
],
"supportedController": "MQTT",
"commandsEncoding": "Raw",
"temperatureUnit": "C",
"minTemperature": 16.0,
"maxTemperature": 30.0,
"precision": 1.0,
"operationModes": [
"heat",
"cool",
"dry"
],
"fanModes": [
"auto",
"low",
"mid",
"high"
],
"commands": {
"off": "CJANrw10AzwKVSADAjcDeGAHgAMAWiAPAFpgC8Af4AcTQAtAMwc3A5IDVQN0A4AvAHRgC0ADQAHAG4ADQFfgCR9Ag4B/QD+AX+AHi8AL4AGL4AMXgHeAh+ABY8AF4AOD4AOjwCFAC4CDBF42rw2QIAfgA7OAt8DHgPfA7wCSoFvgA/fA48CbgHOBQ+AFU8AT4AH34AOLwK/Aa0EP4AXDgJPhAXvhA4eA9+ABg+EB48CzwStAhwBV4ACvwOcCzQ1yIZM=",
"heat": {
"auto": {
"16": "C3INzQ1VA1oKVQN0A0ADCDcDsQMYA3gKNyATQANAG4AHAJIgFwCSIB9AAwB4IBcAPKAjQCtAFwCxIBcAPKAvwA9AT8AzAJIgX4BT4AETgCPgCYNAK0BfgIeAG0Bb4ANPwBuAJ+ABG8CzQG/gAX+Av0CTwDPgAYNAFwdyDa8NNwObNoEPgGNBBwB0IFcAGOAA5+ABO4EPQHdAcwA8ICcBWgqAJ0B7gGfgAesAl6AbgGuAh0FjQNMEkgP6ArVgC8AfA1MN7A1Ba4BbAHggO+EBk0FDQZ+AQ4Dv4AP34QE3QcdAKwCXYB+AM4CvAhgDz2DzAfoCwefAr0AjgZcAUyGTATcD",
Then to make sure it’s actually firing an IR code I use my phones camera so I can see if the IR blasters are working.