Replies: 1 comment
-
You can try this larger sensor entry - it converts F to C in the filter, does some range checking and throttling, and prints to the log (as long as your logger is set to at least # Creates the sensor used to receive the remote temperature from Home Assistant
# Uses sensor selected in substitutions area at top of config
# Customize the filters to your application:
# Uncomment the first line to convert F to C when remote temps are sent
# If you have a fast or noisy sensor, consider some of the other filter
# options such as throttle_average.
sensor:
- platform: homeassistant
name: "Remote Temperature Sensor"
entity_id: ${remote_temp_sensor}
internal: false
disabled_by_default: true
device_class: temperature
state_class: measurement
unit_of_measurement: "°C"
filters:
# Uncomment this line to convert F to C on incoming temperature
- lambda: return (x - 32) * (5.0/9.0);
- clamp: # Limits values to range accepted by Mitsubishi units
min_value: 1
max_value: 40
ignore_out_of_range: true
- throttle: 30s
on_value:
then:
- logger.log:
level: INFO
format: "Remote temperature received from HA: %.1f C"
args: [ 'x' ]
- lambda: 'id(hp).set_remote_temperature(x);' To your questions:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(First, thanks @echavet and collaborators for all your work on this!)
I have this running in 6 FS head units, each reading temp off a remote sensor. I'm not using api calls, instead listing each in the
Sensor
section of the config. E.g.:Was just hoping to get some general clarification on how the remote temp updates work:
I'm a novice, so sorry if any of this is easy to see in the code or logs. Appreciate the help!
Beta Was this translation helpful? Give feedback.
All reactions