const states = global.get('homeassistant.homeAssistant.states')