Hello, i have a flow that controls my heating and cooling. it had been working correctly until i upgraded to 17.0. specifically i have a function node that gets some states from different entities to correctly set things. The code below was working until yesterday:
//get the instance
var beachHA = global.get('homeassistant.beachHA');
//pull the variable states
// var awayHigh = parseFloat(global.get("homeassistant.beachHA.states['input_number.ac_away_low'].state"));
var awayHigh = parseFloat(beachHA.states["input_number.ac_away_high"].state);
var awayLow = parseFloat(beachHA.states["input_number.ac_away_low"].state);
var homeColdHigh = parseFloat(beachHA.states["input_number.ac_home_cold_high"].state);
var homeColdLow = parseFloat(beachHA.states["input_number.ac_home_cold_low"].state);
var homeHotHigh = parseFloat(beachHA.states["input_number.ac_home_hot_high"].state);
var homeHotLow = parseFloat(beachHA.states["input_number.ac_home_hot_low"].state);
Now for that node i get the below error for each of the state gets. All other state nodes
on other flows are pulling information from HA, so i know the connection is good.
"TypeError: Cannot read properties of undefined (reading 'states')"
Reading the release notes i don’t see anything that changed that would impact this. anyone have any ideas?