Openhab2 and Nest

Hi i have problem with my nest thermostat and OpenHab, could you help me?

addons.cfg
binding = mqtt,nest

.items
> String NestTStat_hvac_mode “HVAC Mode [%s]” {nest="=[thermostats(Home).hvac_mode]"}
> DateTime Nest_last_connection “Last Nest Connection [%1$tm/%1$td %1$tH:%1$tM]” {nest="<[last_connection]"}
> Number NestHome_temp “Home temperature [%.1f °F]” {nest="<[structures(Home).thermostats(Home).ambient_temperature_f]"}
> Number NestCondo_temp “Condo temperature [%.1f °F]” {nest="<[structures(Condo).thermostats(Home).ambient_temperature_f]"}
> Number NestTStat_humidity “Humidity [%d %%]” {nest="<[thermostats(Upstairs).humidity]"}
> String NestTStat_locale “Locale [%s]” {nest="<[thermostats(Upstairs).locale]"}
> String NestTStat_temperature_scale “Temperature Scale [%s]” {nest="=[thermostats(Upstairs).temperature_scale]"} // writeable as of 1.9
> Switch NestTStat_is_using_emergency_heat “Is using emergency heat [%s]” {nest="<[thermostats(Upstairs).is_using_emergency_heat]"}
> Switch NestTStat_has_fan “Has Fan [%s]” {nest="<[thermostats(Upstairs).has_fan]"}
> String NestTStat_software_version “Software Version [%s]” {nest="<[thermostats(Upstairs).software_version]"}
> Switch NestTStat_has_leaf “Has Leaf [%s]” {nest="<[thermostats(Upstairs).has_leaf]"}
> String NestTStat_device_id “Device Id [%s]” {nest="<[thermostats(Upstairs).device_id]"}
> String NestTStat_name “Name [%s]” {nest="<[thermostats(Upstairs).name]"}
> Switch NestTStat_can_heat “Can Heat [%s]” {nest="<[thermostats(Upstairs).can_heat]"}
> Switch NestTStat_can_cool “Can Cool [%s]” {nest="<[thermostats(Upstairs).can_cool]"}
> String NestTStat_hvac_mode “HVAC Mode [%s]” {nest="=[thermostats(Upstairs).hvac_mode]"}
> Number NestTStat_target_temperature_c “Target Temperature [%.1f °C]” {nest="=[thermostats(Upstairs).target_temperature_c]"}
> Number NestTStat_target_temperature_f “Target Temperature [%.1f °F]” {nest="=[thermostats(Upstairs).target_temperature_f]"}
> Number NestTStat_target_temperature_high_c “Target Temperature High [%.1f °C]” {nest="=[thermostats(Upstairs).target_temperature_high_c]"}
> Number NestTStat_target_temperature_high_f “Target Temperature High [%.1f °F]” {nest="=[thermostats(Upstairs).target_temperature_high_f]"}
> Number NestTStat_target_temperature_low_c “Target Temperature Low [%.1f °C]” {nest="=[thermostats(Upstairs).target_temperature_low_c]"}
> Number NestTStat_target_temperature_low_f “Target Temperature Low [%.1f °F]” {nest="=[thermostats(Upstairs).target_temperature_low_f]"}
> Number NestTStat_ambient_temperature_c “Ambient Temperature [%.1f °C]” {nest="<[thermostats(Upstairs).ambient_temperature_c]"}
> Number NestTStat_ambient_temperature_f “Ambient Temperature [%.1f °F]” {nest="<[thermostats(Upstairs).ambient_temperature_f]"}
> Number NestTStat_eco_temperature_high_c “Eco Temperature High [%.1f °C]” {nest="<[thermostats(Upstairs).eco_temperature_high_c]"} // as of 1.9
> Number NestTStat_eco_temperature_high_f “Eco Temperature High [%.1f °F]” {nest="<[thermostats(Upstairs).eco_temperature_high_f]"} // as of 1.9
> Number NestTStat_eco_temperature_low_c “Eco Temperature Low [%.1f °C]” {nest="<[thermostats(Upstairs).eco_temperature_low_c]"} // as of 1.9
> Number NestTStat_eco_temperature_low_f “Eco Temperature Low [%.1f °F]” {nest="<[thermostats(Upstairs).eco_temperature_low_f]"} // as of 1.9
> Number NestTStat_away_temperature_high_c “Away Temperature High [%.1f °C]” {nest="<[thermostats(Upstairs).away_temperature_high_c]"} // deprecated
> Number NestTStat_away_temperature_high_f “Away Temperature High [%.1f °F]” {nest="<[thermostats(Upstairs).away_temperature_high_f]"} // deprecated
> Number NestTStat_away_temperature_low_c “Away Temperature Low [%.1f °C]” {nest="<[thermostats(Upstairs).away_temperature_low_c]"} // deprecated
> Number NestTStat_away_temperature_low_f “Away Temperature Low [%.1f °F]” {nest="<[thermostats(Upstairs).away_temperature_low_f]"} // deprecated
> String NestTStat_structure_id “Structure ID [%s]” {nest="<[thermostats(Upstairs).structure_id]"}
> Switch NestTStat_fan_timer_active “Fan Timer Active [%s]” {nest="=[thermostats(Upstairs).fan_timer_active]"}
> DateTime NestTStat_fan_timer_timeout “Fan Timer Timeout [%1$tm/%1$td %1$tH:%1$tM]” {nest="<[thermostats(Upstairs).fan_timer_timeout]"}
> String NestTStat_name_long “Name Long [%s]” {nest="<[thermostats(Upstairs).name_long]"}
> Switch NestTStat_is_online “Is Online [%s]” {nest="<[thermostats(Upstairs).is_online]"}
> DateTime NestTStat_last_connection “Last Connection [%1$tm/%1$td %1$tH:%1$tM]” {nest="<[thermostats(Upstairs).last_connection]"}
> String NestTStat_hvac_state “HVAC State [%s]” {nest="<[thermostats(Upstairs).hvac_state]"} // as of 1.7.1
> String NestTStat_where_id “Where ID [%s]” {nest="<[thermostats(Upstairs).where_id]"} // as of 1.9
> Switch NestTStat_is_locked “Is Locked [%s]” {nest="<[thermostats(Upstairs).is_locked]"} // as of 1.9
> String NestTStat_locked_temp_min_f “Locked Temp Min [%s °F]” {nest="<[thermostats(Upstairs).locked_temp_min_f]"} // as of 1.9, yes it’s a String
> String NestTStat_locked_temp_max_f “Locked Temp Max [%s °F]” {nest="<[thermostats(Upstairs).locked_temp_max_f]"} // as of 1.9, yes it’s a String
> String NestTStat_locked_temp_min_c “Locked Temp Min [%s °C]” {nest="<[thermostats(Upstairs).locked_temp_min_c]"} // as of 1.9, yes it’s a String
> String NestTStat_locked_temp_max_c “Locked Temp Max [%s °C]” {nest="<[thermostats(Upstairs).locked_temp_max_c]"} // as of 1.9, yes it’s a String
> String NestTStat_label “Label [%s]” {nest="=[thermostats(Upstairs).label]"} // as of 1.9
> Switch NestTStat_sunlight_correction_enabled “Sunlight Correction Enabled” {nest="<[thermostats(Upstairs).sunlight_correction_enabled]"} // as of 1.9
> Switch NestTStat_sunlight_correction_active “Sunlight Correction Active” {nest="<[thermostats(Upstairs).sunlight_correction_active]"} // as of 1.9
> String NestTStat_where_name “Where Name [%s]” {nest="<[thermostats(Upstairs).where_name]"} // as of 1.9
> Number NestTStat_fan_timer_duration “Fan Timer Duration [%d]” {nest="=[thermostats(Upstairs).fan_timer_duration]"} // as of 1.9
> String NestTStat_time_to_target “Time to target temp. [%s min]” {nest="<[thermostats(Upstairs).time_to_target]"} // as of 1.9
> String NestTStat_time_to_target_training “Time to target training [%s]” {nest="<[thermostats(Upstairs).time_to_target_training]"} // as of 1.9
> String NestTStat_previous_hvac_mode “Previous HVAC Mode [%s]” {nest="<[thermostats(Upstairs).previous_hvac_mode]"} // as of 1.9

.sitemap

Frame label=“Nest” {
Text item=Home_room_ambient_temperature_c visibility=[dining_room_temperature_scale==“C”] label="Temperatura wew."
Text item=Home_room_humidity label="Wilgotność wew."
Switch item=Home_room_hvac_mode mappings=[heat=“Heat”,cool=“Cool”,“heat-cool”=“Auto”,off=“Off”]
Setpoint item=Home_room_target_temperature_f label=“Target Temperature [%.1f °F]” minValue=50 maxValue=80 step=1 visibility=[dining_room_hvac_mode==“heat”,dining_room_hvac_mode==“cool”] label="Temperatura ustawiona"
Setpoint item=Home_room_target_temperature_low_f label=“Minimalna Temperatura [%.1f °F]” minValue=50 maxValue=80 step=1 visibility=[dining_room_hvac_mode==“heat-cool”]
Setpoint item=Home_room_target_temperature_high_f label=“Maksymalna Temperatura [%.1f °F]” minValue=50 maxValue=80 step=1 visibility=[dining_room_hvac_mode==“heat-cool”]
Text item=Home_room_last_connection label="Ostatnie połączenie"
Text item=Home_room_away_temperature_low_f visibility=[home_away==“away”,home_away==“auto-away”] label="Temeratura minimalna po wyściu z domu"
Text item=Home_room_away_temperature_high_f visibility=[home_away==“away”,home_away==“auto-away”] label=“Temperatura maksymalna po wyśjciu z domu”
}

in nest delevopment i create API , and i have Product ID, Product Secret copy do nest.confg and go to Autorization URL and copy PIN

in permissions i add Thermostat read/write v6 but in this permission i have only

Grants read permission to all of the Thermostat data values
it this OK ? or i must change something ?
OpenHab 2 in rasp.

1 Like