Multiple Item on .items file

Hi there, i have created some items for http binding addon in one .items file but only the first one is visible to the system…
i need to split each item in a single .items file in order to use each of theme…
The syntax is simple:

number Entrance_temperature_Item "Entrance Temperature" <temperature> { http="<[EntranceTemperatureCache:30000:JS(senseTemp.js)]" }
number Fridge_temperature_Item "Fridge Temperature" <temperature> { http="<[FridgeTemperatureCache:30000:JS(senseTemp.js)]" }
number Bedroom_temperature_Item "Bedroom Temperature" <temperature> { http="<[BedroomTemperatureCache:30000:JS(senseTemp.js)]" }

Only the first Entrance_temperature_Item is visible if not splitted on multiple files…

Number should be with a capital N.

Note that you can make your posting more readable by correctly formatting your items code using the small paper button (the one next to the smiley button).

Number Entrance_temperature_Item "Entrance Temperature" { http="<[EntranceTemperatureCache:30000:JS(senseTemp.js)]" }
Number Fridge_temperature_Item   "Fridge Temperature"   { http="<[FridgeTemperatureCache:30000:JS(senseTemp.js)]" }
Number Bedroom_temperature_Item  "Bedroom Temperature"  { http="<[BedroomTemperatureCache:30000:JS(senseTemp.js)]" }

Thanks a lot marcel, i haven’t seen the codebutton :wink:
Anyway, “Number” is wrotten with a capital N, it’s my trascription error sorry.

Load the .items files into Designer to look for syntax errors. There might be a stray hidden character or the like that might be causing problems.

Number Fridge_Temperature_Item "Temperatura Frigo" <temperature> { http="<[FridgeTemperatureCache:30000:JS(senseTemp.js)]" } [ "CurrentTemperature" ]
Number Bedroom_Temperature_Item "Temperatura Camera" <temperature> { http="<[BedroomTemperatureCache:30000:JS(senseTemp.js)]" } [ "CurrentTemperature" ]
Number Living_Temperature_Item "Temperatura Ingresso" <temperature> { http="<[LivingTemperatureCache:30000:JS(senseTemp.js)]" } [ "CurrentTemperature" ]

I don’t know which service you are using that requires tags, but at least for ImperiHome it indicates the tag goes before the { }. I don’t user tags so can’t say anything else for sure, but if the tag is in the wrong place it would cause later Items in that file to fail to parse.

You should be seeing errors in the logs.

Designer certainly shows an error with the tag at the end but not when the tag is before the { }.

I’m using homekit binding :confused:

I’m a bit confused now. I may be wrong here, but your item definitions look like they are for the HTTP binding, not for the Homekit Addon.

Anyway, according to this post Rich is correct and the tag should go before the binding/channel definition.

Number Fridge_Temperature_Item "Temperatura Frigo" <temperature> [ "CurrentTemperature" ] { http="<[FridgeTemperatureCache:30000:JS(senseTemp.js)]" }
Number Bedroom_Temperature_Item "Temperatura Camera" <temperature> [ "CurrentTemperature" ] { http="<[BedroomTemperatureCache:30000:JS(senseTemp.js)]" }
Number Living_Temperature_Item "Temperatura Ingresso" <temperature> [ "CurrentTemperature" ] { http="<[LivingTemperatureCache:30000:JS(senseTemp.js)]" }

Problem solved!!!
Thanks a lot!!