wmaker
(Tommy Long)
February 19, 2025, 11:00pm
21
I assume the Sonoff device is just a sensor with the state being the temperature. There are intents to query sensor entities with temperatures, but the intent uses the name of the sensor and returns its state (i.e. temperature). One can include the area, but still requires the name of the sensor. Here is the main english template for a sensor, and in this case the <class>
is temperature and <name>
would be the friendly name of the sonoff sensor
what_is_the_class_of_name: "(<what_is> the <class> (of|in|from|(indicated|measured) by) <name> [in <area>]|<what_is> <name>['s] <class> [in <area>]|<what_is> <area> <name>['s] <class>)"
ncasaux
(ncasaux)
February 25, 2025, 8:43pm
22
Thank you for your valuable inputs @wmaker .
I managed to ask the intent you suggested in english (not available in french it appears), but I feel it is still too âcomplicatedâ. I should not have to specify the name of the sensor ultimately, just the class and the room should be enough.
Do you think guys I should I raise an issue regarding this ?
This is similar to what I see. I have an area called âKitâs Roomâ. I have a msr-2 sensor which seems to have the temperature as a state.
This doesnât work: what is the temperature in kitâs room?
name: HassClimateGetTemperature
slots:
area: kit's room
details:
area:
name: area
value: Kit's Room
text: kit's room
targets:
light.kit_room:
matched: true
switch.apollo_msr_2_6d19c8_radar_engineering_mode:
matched: true
switch.apollo_msr_2_6d19c8_ld2410_bluetooth:
matched: true
switch.apollo_msr_2_6d19c8_startup_light_blink:
matched: true
switch.apollo_msr_2_6d19c8_reduce_db_reporting:
matched: true
light.apollo_msr_2_6d19c8_rgb_light:
matched: true
button.apollo_msr_2_6d19c8_esp_reboot:
matched: true
button.apollo_msr_2_6d19c8_factory_reset_radar:
matched: true
button.apollo_msr_2_6d19c8_restart_radar:
matched: true
button.apollo_msr_2_6d19c8_query_params:
matched: true
button.apollo_msr_2_6d19c8_calibrate_scd40_to_420ppm:
matched: true
number.apollo_msr_2_6d19c8_dps_temperature_offset:
matched: true
number.apollo_msr_2_6d19c8_radar_zone_1_start:
matched: true
number.apollo_msr_2_6d19c8_radar_end_zone_1:
matched: true
number.apollo_msr_2_6d19c8_radar_end_zone_2:
matched: true
number.apollo_msr_2_6d19c8_radar_end_zone_3:
matched: true
number.apollo_msr_2_6d19c8_radar_timeout:
matched: true
number.apollo_msr_2_6d19c8_radar_max_move_distance:
matched: true
number.apollo_msr_2_6d19c8_radar_max_still_distance:
matched: true
number.apollo_msr_2_6d19c8_g0_move_threshold:
matched: true
number.apollo_msr_2_6d19c8_g0_still_threshold:
matched: true
number.apollo_msr_2_6d19c8_g1_move_threshold:
matched: true
number.apollo_msr_2_6d19c8_g1_still_threshold:
matched: true
number.apollo_msr_2_6d19c8_g2_move_threshold:
matched: true
number.apollo_msr_2_6d19c8_g2_still_threshold:
matched: true
number.apollo_msr_2_6d19c8_g3_move_threshold:
matched: true
number.apollo_msr_2_6d19c8_g3_still_threshold:
matched: true
number.apollo_msr_2_6d19c8_g4_move_threshold:
matched: true
number.apollo_msr_2_6d19c8_g4_still_threshold:
matched: true
number.apollo_msr_2_6d19c8_g5_move_threshold:
matched: true
number.apollo_msr_2_6d19c8_g5_still_threshold:
matched: true
number.apollo_msr_2_6d19c8_g6_move_threshold:
matched: true
number.apollo_msr_2_6d19c8_g6_still_threshold:
matched: true
number.apollo_msr_2_6d19c8_g7_move_threshold:
matched: true
number.apollo_msr_2_6d19c8_g7_still_threshold:
matched: true
number.apollo_msr_2_6d19c8_g8_move_threshold:
matched: true
number.apollo_msr_2_6d19c8_g8_still_threshold:
matched: true
sensor.apollo_msr_2_6d19c8_esp_temperature:
matched: true
sensor.apollo_msr_2_6d19c8_uptime:
matched: true
sensor.apollo_msr_2_6d19c8_rssi:
matched: true
sensor.apollo_msr_2_6d19c8_co2:
matched: true
sensor.apollo_msr_2_6d19c8_radar_moving_distance:
matched: true
sensor.apollo_msr_2_6d19c8_ltr390_light:
matched: true
sensor.apollo_msr_2_6d19c8_dps310_temperature:
matched: true
sensor.apollo_msr_2_6d19c8_dps310_pressure:
matched: true
sensor.apollo_msr_2_6d19c8_radar_still_distance:
matched: true
sensor.apollo_msr_2_6d19c8_radar_move_energy:
matched: true
sensor.apollo_msr_2_6d19c8_radar_still_energy:
matched: true
sensor.apollo_msr_2_6d19c8_radar_detection_distance:
matched: true
sensor.apollo_msr_2_6d19c8_g0_move_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g0_still_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g1_move_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g1_still_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g2_move_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g2_still_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g3_move_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g3_still_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g4_move_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g4_still_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g5_move_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g5_still_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g6_move_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g6_still_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g7_move_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g7_still_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g8_move_energy:
matched: true
sensor.apollo_msr_2_6d19c8_g8_still_energy:
matched: true
sensor.apollo_msr_2_6d19c8_ltr390_uv_index:
matched: true
sensor.apollo_msr_2_6d19c8_radar_firmware_version:
matched: true
binary_sensor.apollo_msr_2_6d19c8_online:
matched: true
binary_sensor.apollo_msr_2_6d19c8_radar_zone_1_occupancy:
matched: true
binary_sensor.apollo_msr_2_6d19c8_radar_zone_2_occupancy:
matched: true
binary_sensor.apollo_msr_2_6d19c8_radar_zone_3_occupancy:
matched: true
binary_sensor.apollo_msr_2_6d19c8_radar_target:
matched: true
binary_sensor.apollo_msr_2_6d19c8_radar_moving_target:
matched: true
binary_sensor.apollo_msr_2_6d19c8_radar_still_target:
matched: true
media_player.kit_s_google_home:
matched: true
switch.kit_room:
matched: true
sensor.kit_room_current_power:
matched: true
sensor.kit_room_today_energy:
matched: true
binary_sensor.kit_room_device:
matched: true
device_tracker.espressif_inc_6d_19_c8:
matched: true
match: true
sentence_template: <what_is> [the] [current] <temp> <in> <area>
unmatched_slots: {}
source: builtin
While this works: what is kitâs room temperature?
intent:
name: HassGetState
slots:
name: kit's room temperature
details:
name:
name: name
value: Kit's Room Temperature
text: kit's room temperature
targets:
sensor.apollo_msr_2_6d19c8_dps310_temperature:
matched: true
match: true
sentence_template: >-
(do you know|tell me|<what_is>) [the [current] (state|value) of] <name>
[<in_area_floor>]
unmatched_slots: {}
source: builtin
Notice the first one is using HassClimateGetTemperature
and second one is using HassGetState
.
I had to add âKitâs Room Temperatureâ to the DPS310 Temperature
sensor in the Voice Assistants
section to have the second one working.
Obviously this should be more magical and âjust workâ not matter which one I say.
bamje
May 11, 2025, 9:17am
24
I am facing the same problems.
To me this behavior makes no sense.
In fact, what is the purpose of setting a temp and humidity sensor in an area? Just do display it in a dashboard?
I mean, once you set up those sensors as default in an area, those should be used by assist, this would make much more sense, this way asking â what is the bedroom temperature?â Should read that sensor state, even regardless of the sensor name
Just tried this and the built-in sentence worked first go.
Expose the temperature entity to Assist
Give it a couple of appropriate aliases - âkitchen temperatureâ and âtemperature in the kitchenâ
Ask âWhatâs the temperature in the kitchen?â
Makes no difference what the device area is.